Class XDataManager
Data manager Defines user session context across (possible) multiple data sources
Inherited Members
Namespace: XData
Assembly: XData.docfx.dll
Syntax
public static class XDataManager
Fields
| Improve this Doc View SourceResources
Declaration
public static dynamic Resources
Field Value
| Type | Description |
|---|---|
| Object |
Properties
| Improve this Doc View SourceConfiguration
Declaration
public static IConfiguration Configuration { get; }
Property Value
| Type | Description |
|---|---|
| IConfiguration |
Credentials
Declaration
public static Dictionary<string, Dictionary<CredentialsType, string>> Credentials { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<String, Dictionary<CredentialsType, String>> |
Methods
| Improve this Doc View SourceAddXData(IServiceCollection, Func<IDataOptions, IDataOptions>)
XData initialization
Declaration
public static IServiceCollection AddXData(this IServiceCollection services, Func<IDataOptions, IDataOptions> options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | Services collection |
| Func<IDataOptions, IDataOptions> | options | XData engine options |
Returns
| Type | Description |
|---|---|
| IServiceCollection | XData engine interface |
GetConcurrencyErrorId(String)
Returns concurrency error id for context
Declaration
public static int GetConcurrencyErrorId(string context)
Parameters
| Type | Name | Description |
|---|---|---|
| String | context | Context name |
Returns
| Type | Description |
|---|---|
| Int32 | Concurrency error id |
UseXData(IApplicationBuilder)
XData initialization
Declaration
public static IApplicationBuilder UseXData(this IApplicationBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplicationBuilder | builder | Application builder interface |
Returns
| Type | Description |
|---|---|
| IApplicationBuilder | Application builder interface |
UseXData(IServiceProvider)
XData initialization
Declaration
public static IServiceProvider UseXData(this IServiceProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | provider | Service provider interface |
Returns
| Type | Description |
|---|---|
| IServiceProvider | Service provider interface |