RelationalModelExtensions.RemoveSequence 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RemoveSequence(IConventionModel, String, String) |
IConventionSequence移除具有指定名稱的 。 |
RemoveSequence(IMutableModel, String, String) |
IMutableSequence移除具有指定名稱的 。 |
RemoveSequence(IConventionModel, String, String)
IConventionSequence移除具有指定名稱的 。
public static Microsoft.EntityFrameworkCore.Metadata.IConventionSequence RemoveSequence (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionSequence? RemoveSequence (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, string? schema = default);
static member RemoveSequence : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * string -> Microsoft.EntityFrameworkCore.Metadata.IConventionSequence
<Extension()>
Public Function RemoveSequence (model As IConventionModel, name As String, Optional schema As String = Nothing) As IConventionSequence
參數
- model
- IConventionModel
要尋找序列的模型。
- name
- String
序列名稱。
- schema
- String
包含序列的架構。
傳回
已移除 IConventionSequence , null
如果找不到具有指定架構中指定名稱的序列,則為 。
適用於
RemoveSequence(IMutableModel, String, String)
IMutableSequence移除具有指定名稱的 。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableSequence RemoveSequence (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableSequence? RemoveSequence (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name, string? schema = default);
static member RemoveSequence : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableSequence
<Extension()>
Public Function RemoveSequence (model As IMutableModel, name As String, Optional schema As String = Nothing) As IMutableSequence
參數
- model
- IMutableModel
要尋找序列的模型。
- name
- String
序列名稱。
- schema
- String
包含序列的架構。
傳回
已移除 IMutableSequence , null
如果找不到具有指定架構中指定名稱的序列,則為 。