DbContextOptionsBuilder<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
DbContextOptionsBuilder<TContext>() |
Initializes a new instance of the DbContextOptionsBuilder<TContext> class with no options set. |
DbContextOptionsBuilder<TContext>(DbContextOptions<TContext>) |
Initializes a new instance of the DbContextOptionsBuilder<TContext> class to further configure a given DbContextOptions. |
DbContextOptionsBuilder<TContext>()
Initializes a new instance of the DbContextOptionsBuilder<TContext> class with no options set.
public DbContextOptionsBuilder ();
Public Sub New ()
Applies to
DbContextOptionsBuilder<TContext>(DbContextOptions<TContext>)
Initializes a new instance of the DbContextOptionsBuilder<TContext> class to further configure a given DbContextOptions.
public DbContextOptionsBuilder (Microsoft.EntityFrameworkCore.DbContextOptions<TContext> options);
new Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> : Microsoft.EntityFrameworkCore.DbContextOptions<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)> -> Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<'Context (requires 'Context :> Microsoft.EntityFrameworkCore.DbContext)>
Public Sub New (options As DbContextOptions(Of TContext))
Parameters
- options
- DbContextOptions<TContext>
The options to be configured.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för