Share via


SqliteDbContextOptionsBuilder.SuppressForeignKeyEnforcement Method

Definition

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)

Source:
SqliteDbContextOptionsBuilder.cs
Source:
SqliteDbContextOptionsBuilder.cs

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