Share via


DbContextOptionsBuilder<TContext> Constructors

Definition

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>()

Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs

Initializes a new instance of the DbContextOptionsBuilder<TContext> class with no options set.

public DbContextOptionsBuilder ();
Public Sub New ()

Applies to

DbContextOptionsBuilder<TContext>(DbContextOptions<TContext>)

Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs
Source:
DbContextOptionsBuilder%60.cs

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