SqliteDbContextOptionsBuilder.SuppressForeignKeyEnforcement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
抑制在資料庫中強制執行外鍵。
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
傳回
相同的產生器實例,以便鏈結多個呼叫。