SqliteDbContextOptionsBuilder.SuppressForeignKeyEnforcement Method
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
SuppressForeignKeyEnforcement() |
Suppresses enforcement of foreign keys in the database. |
SuppressForeignKeyEnforcement(Boolean) |
Suppresses enforcement of foreign keys in the database. |
SuppressForeignKeyEnforcement()
Suppresses enforcement of foreign keys in the database.
public virtual Microsoft.EntityFrameworkCore.Infrastructure.SqliteDbContextOptionsBuilder SuppressForeignKeyEnforcement ();
abstract member SuppressForeignKeyEnforcement : unit -> Microsoft.EntityFrameworkCore.Infrastructure.SqliteDbContextOptionsBuilder
override this.SuppressForeignKeyEnforcement : unit -> Microsoft.EntityFrameworkCore.Infrastructure.SqliteDbContextOptionsBuilder
Public Overridable Function SuppressForeignKeyEnforcement () As SqliteDbContextOptionsBuilder
Returns
The same builder instance so that multiple calls can be chained.
Applies to
SuppressForeignKeyEnforcement(Boolean)
Suppresses enforcement of foreign keys in the database.
public virtual Microsoft.EntityFrameworkCore.Infrastructure.SqliteDbContextOptionsBuilder SuppressForeignKeyEnforcement (bool suppressForeignKeyEnforcement = true);
abstract member SuppressForeignKeyEnforcement : bool -> Microsoft.EntityFrameworkCore.Infrastructure.SqliteDbContextOptionsBuilder
override this.SuppressForeignKeyEnforcement : bool -> Microsoft.EntityFrameworkCore.Infrastructure.SqliteDbContextOptionsBuilder
Public Overridable Function SuppressForeignKeyEnforcement (Optional suppressForeignKeyEnforcement As Boolean = true) As SqliteDbContextOptionsBuilder
Parameters
- suppressForeignKeyEnforcement
- Boolean
Returns
The same builder instance so that multiple calls can be chained.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework