Class PgServiceBuilderExtensions
This static class adds the injectable PostgreSQL data services into the services collection.
Inheritance
System.Object
PgServiceBuilderExtensions
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.Pg.dll
Syntax
public static class PgServiceBuilderExtensions
Methods
| Improve this Doc View SourceAddPgServices(IServiceCollection, IConfiguration)
Loads configuration into injectable Options and the DbDataStores and ShardDataStores services. ILogger service should have already be created.
Declaration
public static IServiceCollection AddPgServices(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 |
AddPgServices<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 AddPgServices<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 |