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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework