RelationalModelBuilderExtensions.HasSequence 方法

定义

重载

HasSequence(ModelBuilder, Type, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, Type, String, String)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, Type, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, Type, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, Type, String, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, Type, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, Type, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(IConventionModelBuilder, String, String, Boolean)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, String, String)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence<T>(ModelBuilder, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence<T>(ModelBuilder, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence<T>(ModelBuilder, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence<T>(ModelBuilder, String, String)

在面向关系数据库时配置数据库序列。

HasSequence<T>(ModelBuilder, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence<T>(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence<T>(ModelBuilder, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

HasSequence(ModelBuilder, Type, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, type As Type, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

clrTypetype
Type

序列将生成的值的类型。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence(ModelBuilder, Type, String, String)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, string? schema = default);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, Optional schema As String = Nothing) As SequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, type As Type, name As String, Optional schema As String = Nothing) As SequenceBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

clrTypetype
Type

序列将生成的值的类型。

name
String

序列的名称。

schema
String

序列的架构。

返回

用于进一步配置序列的生成器。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence(ModelBuilder, Type, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type type, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, type As Type, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

clrTypetype
Type

序列将生成的值的类型。

name
String

序列的名称。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence(ModelBuilder, Type, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

clrType
Type

序列将生成的值的类型。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence(ModelBuilder, Type, String, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

clrType
Type

序列将生成的值的类型。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<RelationalSequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence(ModelBuilder, Type, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

clrType
Type

序列将生成的值的类型。

name
String

序列的名称。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence(ModelBuilder, Type, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

clrType
Type

序列将生成的值的类型。

name
String

序列的名称。

builderAction
Action<RelationalSequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<RelationalSequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence(ModelBuilder, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence(IConventionModelBuilder, String, String, Boolean)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string name, string schema = default, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string name, string? schema = default, bool fromDataAnnotation = false);
static member HasSequence : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionSequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As IConventionModelBuilder, name As String, Optional schema As String = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionSequenceBuilder

参数

modelBuilder
IConventionModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

用于进一步配置序列的生成器。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence(ModelBuilder, String, String)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string? schema = default);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As SequenceBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

返回

用于进一步配置序列的生成器。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence(ModelBuilder, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence(ModelBuilder, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

builderAction
Action<RelationalSequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence(ModelBuilder, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence(ModelBuilder, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence<T>(ModelBuilder, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

类型参数

T

序列将生成的值的类型。

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence<T>(ModelBuilder, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder

类型参数

T

序列将生成的值的类型。

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

builderAction
Action<RelationalSequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence<T>(ModelBuilder, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

类型参数

T

序列将生成的值的类型。

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence<T>(ModelBuilder, String, String)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string? schema = default);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As SequenceBuilder

类型参数

T

序列将生成的值的类型。

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

返回

用于进一步配置序列的生成器。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence<T>(ModelBuilder, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

类型参数

T

序列将生成的值的类型。

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例 ,请参阅数据库序列

适用于

HasSequence<T>(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder

类型参数

T

序列将生成的值的类型。

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<RelationalSequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于

HasSequence<T>(ModelBuilder, String, String, Action<SequenceBuilder>)

在面向关系数据库时配置数据库序列。

public static Microsoft.EntityFrameworkCore.ModelBuilder HasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> builderAction);
static member HasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.SequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasSequence(Of T) (modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of SequenceBuilder)) As ModelBuilder

类型参数

T

序列将生成的值的类型。

参数

modelBuilder
ModelBuilder

模型生成器。

name
String

序列的名称。

schema
String

序列的架构。

builderAction
Action<SequenceBuilder>

执行序列配置的操作。

返回

同一生成器实例,以便可以链接多个调用。

适用于