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

包含序列的架构。

返回

如果未在给定架构中找到具有给定名称的序列,则为已删除 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

适用于