共用方式為


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)

來源:
SqliteDbContextOptionsBuilder.cs
來源:
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

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於