ContainerExtensions Class
HAKOM.Persistence.Sql.SqlServer.Net.Api.Extensions
Section titled “HAKOM.Persistence.Sql.SqlServer.Net.Api.Extensions”Extension methods for registering SQL Server persistence services.
public static class ContainerExtensionsInheritance System.Object 🡒 ContainerExtensions
Methods
Section titled “Methods”ContainerExtensions.UseSqlServer(this IContainer) Method
Section titled “ContainerExtensions.UseSqlServer(this IContainer) Method”Registers all SQL Server persistence services including the storage provider,
SqlClientFactory, the ISqlServerParameterFactory,
ISqlServerStorageProvider, and the SQL Server repository
version store.
public static HAKOM.DependencyInjection.Core.Net.Api.IContainer UseSqlServer(this HAKOM.DependencyInjection.Core.Net.Api.IContainer container);Parameters
Section titled “Parameters”container IContainer
The dependency injection container to configure.
Returns
Section titled “Returns”IContainer
The same container for fluent chaining.
Exceptions
Section titled “Exceptions”SqlClientFactoryCouldNotBeLoadedException
Thrown when SqlClientFactory.Instance is null.
Was this page helpful?Thanks for your feedback!