DbContextOptions<TContext> 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
DbContextOptions<TContext>() |
Initializes a new instance of the DbContextOptions<TContext> class. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code. |
DbContextOptions<TContext>(IReadOnlyDictionary<Type,IDbContextOptionsExtension>) |
Initializes a new instance of the DbContextOptions<TContext> class. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code. |
DbContextOptions<TContext>()
Initializes a new instance of the DbContextOptions<TContext> class. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code.
public DbContextOptions ();
Public Sub New ()
Applies to
DbContextOptions<TContext>(IReadOnlyDictionary<Type,IDbContextOptionsExtension>)
Initializes a new instance of the DbContextOptions<TContext> class. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code.
public DbContextOptions (System.Collections.Generic.IReadOnlyDictionary<Type,Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension> extensions);
new Microsoft.EntityFrameworkCore.DbContextOptions<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> : System.Collections.Generic.IReadOnlyDictionary<Type, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension> -> Microsoft.EntityFrameworkCore.DbContextOptions<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)>
Public Sub New (extensions As IReadOnlyDictionary(Of Type, IDbContextOptionsExtension))
Parameters
- extensions
- IReadOnlyDictionary<Type,IDbContextOptionsExtension>
The extensions that store the configured options.
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: