共用方式為


RelationalModelExtensions.RemoveSequence 方法

定義

多載

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

包含序列的架構。

傳回

已移除 IConventionSequencenull 如果找不到具有指定架構中指定名稱的序列,則為 。

適用於

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

包含序列的架構。

傳回

已移除 IMutableSequencenull 如果找不到具有指定架構中指定名稱的序列,則為 。

適用於