You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a minimalistic .NET driver for ArangoDB (3.5+) with adapters to Serilog and DevExtreme
The key difference to any other available driver is the ability to switch databases on a per request basis, which allows for easy database per tenant deployments
Id, Key, From, To properties will always be translated to their respective arango form (_id, _key, _from, _to), which allows to construct updates from anonymous types
First parameter of any method in most cases is an ArangoHandle which has implicit conversion from string and GUID
e.g. "master" and "logs" database and GUID for each tenant
Initialize context
Realm prefixes all further database handles (e.g. "myproject-database")
webBuilder.UseSerilog((c,log)=>{vararango=c.Configuration.GetConnectionString("Arango");log.MinimumLevel.Debug().MinimumLevel.Override("Microsoft",LogEventLevel.Warning).MinimumLevel.Override("Microsoft.Hosting.Lifetime",LogEventLevel.Information).Enrich.FromLogContext().WriteTo.Sink(newArangoSerilogSink(newArangoContext(arango),database:"logs",collection:"logs",batchPostingLimit:50,TimeSpan.FromSeconds(2)),restrictedToMinimumLevel:LogEventLevel.Information);// This is unreliable...if(Environment.UserInteractive)log.WriteTo.Console(theme:AnsiConsoleTheme.Code);});