RelationalConnectionDependencies Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RelationalConnectionDependencies(IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, IDiagnosticsLogger<DbLoggerCategory.Database.Connection>, INamedConnectionStringResolver) |
Creates the service dependencies parameter object for a RelationalConnection. Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process. |
RelationalConnectionDependencies(IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, IDiagnosticsLogger<DbLoggerCategory.Database.Connection>, INamedConnectionStringResolver, IRelationalTransactionFactory) |
Creates the service dependencies parameter object for a RelationalConnection. Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process. |
RelationalConnectionDependencies(IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, IDiagnosticsLogger<DbLoggerCategory.Database.Connection>, INamedConnectionStringResolver, IRelationalTransactionFactory, ICurrentDbContext) |
Creates the service dependencies parameter object for a RelationalConnection. Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process. This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
RelationalConnectionDependencies(IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, IRelationalConnectionDiagnosticsLogger, INamedConnectionStringResolver, IRelationalTransactionFactory, ICurrentDbContext, IRelationalCommandBuilderFactory) |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
RelationalConnectionDependencies(IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, IDiagnosticsLogger<DbLoggerCategory.Database.Connection>, INamedConnectionStringResolver)
Creates the service dependencies parameter object for a RelationalConnection.
Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.
public RelationalConnectionDependencies (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> transactionLogger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> connectionLogger, Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver connectionStringResolver);
new Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> * Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver -> Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies
Public Sub New (contextOptions As IDbContextOptions, transactionLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connectionLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Connection), connectionStringResolver As INamedConnectionStringResolver)
Parameters
- contextOptions
- IDbContextOptions
The options for the current context instance.
- transactionLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>
The logger to which transaction messages will be written.
- connectionLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Connection>
The logger to which connection messages will be written.
- connectionStringResolver
- Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver
A service for resolving a connection string from a name.
Applies to
RelationalConnectionDependencies(IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, IDiagnosticsLogger<DbLoggerCategory.Database.Connection>, INamedConnectionStringResolver, IRelationalTransactionFactory)
Creates the service dependencies parameter object for a RelationalConnection.
Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.
public RelationalConnectionDependencies (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> transactionLogger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> connectionLogger, Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver connectionStringResolver, Microsoft.EntityFrameworkCore.Storage.IRelationalTransactionFactory relationalTransactionFactory);
new Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> * Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver * Microsoft.EntityFrameworkCore.Storage.IRelationalTransactionFactory -> Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies
Public Sub New (contextOptions As IDbContextOptions, transactionLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connectionLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Connection), connectionStringResolver As INamedConnectionStringResolver, relationalTransactionFactory As IRelationalTransactionFactory)
Parameters
- contextOptions
- IDbContextOptions
The options for the current context instance.
- transactionLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>
The logger to which transaction messages will be written.
- connectionLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Connection>
The logger to which connection messages will be written.
- connectionStringResolver
- Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver
A service for resolving a connection string from a name.
- relationalTransactionFactory
- IRelationalTransactionFactory
A service for creating RelationalTransaction instances.
Applies to
RelationalConnectionDependencies(IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, IDiagnosticsLogger<DbLoggerCategory.Database.Connection>, INamedConnectionStringResolver, IRelationalTransactionFactory, ICurrentDbContext)
Creates the service dependencies parameter object for a RelationalConnection.
Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalConnectionDependencies (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> transactionLogger, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> connectionLogger, Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver connectionStringResolver, Microsoft.EntityFrameworkCore.Storage.IRelationalTransactionFactory relationalTransactionFactory, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Connection> * Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver * Microsoft.EntityFrameworkCore.Storage.IRelationalTransactionFactory * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext -> Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies
Public Sub New (contextOptions As IDbContextOptions, transactionLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connectionLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Connection), connectionStringResolver As INamedConnectionStringResolver, relationalTransactionFactory As IRelationalTransactionFactory, currentContext As ICurrentDbContext)
Parameters
- contextOptions
- IDbContextOptions
- transactionLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>
- connectionLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Connection>
- connectionStringResolver
- Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver
- relationalTransactionFactory
- IRelationalTransactionFactory
- currentContext
- ICurrentDbContext
- Attributes
Applies to
RelationalConnectionDependencies(IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>, IRelationalConnectionDiagnosticsLogger, INamedConnectionStringResolver, IRelationalTransactionFactory, ICurrentDbContext, IRelationalCommandBuilderFactory)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public RelationalConnectionDependencies (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> transactionLogger, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalConnectionDiagnosticsLogger connectionLogger, Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver connectionStringResolver, Microsoft.EntityFrameworkCore.Storage.IRelationalTransactionFactory relationalTransactionFactory, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory relationalCommandBuilderFactory);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalConnectionDiagnosticsLogger * Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver * Microsoft.EntityFrameworkCore.Storage.IRelationalTransactionFactory * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Storage.IRelationalCommandBuilderFactory -> Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies
Public Sub New (contextOptions As IDbContextOptions, transactionLogger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connectionLogger As IRelationalConnectionDiagnosticsLogger, connectionStringResolver As INamedConnectionStringResolver, relationalTransactionFactory As IRelationalTransactionFactory, currentContext As ICurrentDbContext, relationalCommandBuilderFactory As IRelationalCommandBuilderFactory)
Parameters
- contextOptions
- IDbContextOptions
- transactionLogger
- IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>
- connectionLogger
- IRelationalConnectionDiagnosticsLogger
- connectionStringResolver
- Microsoft.EntityFrameworkCore.Storage.Internal.INamedConnectionStringResolver
- relationalTransactionFactory
- IRelationalTransactionFactory
- currentContext
- ICurrentDbContext
- relationalCommandBuilderFactory
- IRelationalCommandBuilderFactory
- Attributes
Remarks
Do not call this constructor directly from either provider or application code as it may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the C# 'with' operator. Do not call the constructor at any point in this process.