SqliteDbContextOptionsBuilder.SuppressForeignKeyEnforcement 方法

定义

重载

SuppressForeignKeyEnforcement()

禁止在数据库中强制实施外键。

SuppressForeignKeyEnforcement(Boolean)

禁止在数据库中强制实施外键。

SuppressForeignKeyEnforcement()

禁止在数据库中强制实施外键。

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

返回

同一生成器实例,以便可以链接多个调用。

适用于

SuppressForeignKeyEnforcement(Boolean)

Source:
SqliteDbContextOptionsBuilder.cs
Source:
SqliteDbContextOptionsBuilder.cs

禁止在数据库中强制实施外键。

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

参数

suppressForeignKeyEnforcement
Boolean

返回

同一生成器实例,以便可以链接多个调用。

适用于