Class SqlServiceBuilderExtensions
This static class adds the injectable SQL data services into the services collection.
Inheritance
System.Object
SqlServiceBuilderExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: ArgentSea.Sql.dll
Syntax
public static class SqlServiceBuilderExtensions
Methods
| Improve this Doc View SourceAddSqlServices(IServiceCollection, IConfiguration)
Loads configuration into injectable Options and the DbDataStores service. This overload does not load ShardSets. ILogger service should have already be created.
Declaration
public static IServiceCollection AddSqlServices(this IServiceCollection services, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | |
Microsoft.Extensions.Configuration.IConfiguration | config |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection |
AddSqlServices<TShard>(IServiceCollection, IConfiguration)
Loads configuration into injectable Options and the DbDataStores and ShardDataStores services. ILogger service should have already be created.
Declaration
public static IServiceCollection AddSqlServices<TShard>(this IServiceCollection services, IConfiguration config)
where TShard : IComparable
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | |
Microsoft.Extensions.Configuration.IConfiguration | config |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection |
Type Parameters
Name | Description |
---|---|
TShard |