SqlServerModelBuilderExtensions.ForSqlServerHasSequence 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ForSqlServerHasSequence(ModelBuilder, String, Action<RelationalSequenceBuilder>) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence(ModelBuilder, String, String) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence(ModelBuilder, String, String, Action<RelationalSequenceBuilder>) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence(ModelBuilder, Type, String, Action<RelationalSequenceBuilder>) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence(ModelBuilder, Type, String, String) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence(ModelBuilder, Type, String, String, Action<RelationalSequenceBuilder>) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence<T>(ModelBuilder, String, Action<RelationalSequenceBuilder>) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence<T>(ModelBuilder, String, String) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence<T>(ModelBuilder, String, String, Action<RelationalSequenceBuilder>) |
以SQL Server为目标时配置数据库序列。 |
ForSqlServerHasSequence(ModelBuilder, String, Action<RelationalSequenceBuilder>)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
参数
- modelBuilder
- ModelBuilder
模型生成器。
- name
- String
序列的名称。
- builderAction
- Action<RelationalSequenceBuilder>
执行序列配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
适用于
ForSqlServerHasSequence(ModelBuilder, String, String)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
参数
- modelBuilder
- ModelBuilder
模型生成器。
- name
- String
序列的名称。
- schema
- String
序列的架构。
返回
用于进一步配置序列的生成器。
适用于
ForSqlServerHasSequence(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence (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>
执行序列配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
适用于
ForSqlServerHasSequence(ModelBuilder, Type, String, Action<RelationalSequenceBuilder>)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence (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>
执行序列配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
适用于
ForSqlServerHasSequence(ModelBuilder, Type, String, String)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema = default);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
<Extension()>
Public Function ForSqlServerHasSequence (modelBuilder As ModelBuilder, clrType As Type, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
参数
- modelBuilder
- ModelBuilder
模型生成器。
- clrType
- Type
序列将生成的值的类型。
- name
- String
序列的名称。
- schema
- String
序列的架构。
返回
用于进一步配置序列的生成器。
适用于
ForSqlServerHasSequence(ModelBuilder, Type, String, String, Action<RelationalSequenceBuilder>)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence (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>
执行序列配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
适用于
ForSqlServerHasSequence<T>(ModelBuilder, String, Action<RelationalSequenceBuilder>)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence(Of T) (modelBuilder As ModelBuilder, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
类型参数
- T
序列将生成的值的类型。
参数
- modelBuilder
- ModelBuilder
模型生成器。
- name
- String
序列的名称。
- builderAction
- Action<RelationalSequenceBuilder>
执行序列配置的操作。
返回
同一生成器实例,以便可以链接多个调用。
适用于
ForSqlServerHasSequence<T>(ModelBuilder, String, String)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder ForSqlServerHasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema = default);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder
<Extension()>
Public Function ForSqlServerHasSequence(Of T) (modelBuilder As ModelBuilder, name As String, Optional schema As String = Nothing) As RelationalSequenceBuilder
类型参数
- T
序列将生成的值的类型。
参数
- modelBuilder
- ModelBuilder
模型生成器。
- name
- String
序列的名称。
- schema
- String
序列的架构。
返回
用于进一步配置序列的生成器。
适用于
ForSqlServerHasSequence<T>(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)
以SQL Server为目标时配置数据库序列。
public static Microsoft.EntityFrameworkCore.ModelBuilder ForSqlServerHasSequence<T> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string name, string schema, Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> builderAction);
static member ForSqlServerHasSequence : Microsoft.EntityFrameworkCore.ModelBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.RelationalSequenceBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function ForSqlServerHasSequence(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>
执行序列配置的操作。
返回
同一生成器实例,以便可以链接多个调用。