RelationalModelExtensions.AddSequence 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddSequence(IMutableModel, String, String) |
返回给定架构中具有给定名称的现有 IMutableSequence ,或使用给定名称和架构创建一个新序列。 |
AddSequence(IConventionModel, String, String, Boolean) |
返回给定架构中具有给定名称的现有 IMutableSequence ,或使用给定名称和架构创建一个新序列。 |
AddSequence(IMutableModel, String, String)
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
返回给定架构中具有给定名称的现有 IMutableSequence ,或使用给定名称和架构创建一个新序列。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableSequence AddSequence (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name, string schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableSequence AddSequence (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name, string? schema = default);
static member AddSequence : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableSequence
<Extension()>
Public Function AddSequence (model As IMutableModel, name As String, Optional schema As String = Nothing) As IMutableSequence
参数
- model
- IMutableModel
要向其添加序列的模型。
- name
- String
序列名称。
- schema
- String
架构名称,或使用 null
默认架构。
返回
序列。
适用于
AddSequence(IConventionModel, String, String, Boolean)
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
- Source:
- RelationalModelExtensions.cs
返回给定架构中具有给定名称的现有 IMutableSequence ,或使用给定名称和架构创建一个新序列。
public static Microsoft.EntityFrameworkCore.Metadata.IConventionSequence AddSequence (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, string schema = default, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionSequence? AddSequence (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, string? schema = default, bool fromDataAnnotation = false);
static member AddSequence : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionSequence
<Extension()>
Public Function AddSequence (model As IConventionModel, name As String, Optional schema As String = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionSequence
参数
- model
- IConventionModel
要向其添加序列的模型。
- name
- String
序列名称。
- schema
- String
架构名称,或使用 null
默认架构。
- fromDataAnnotation
- Boolean
指示配置是否是使用数据注释指定的。
返回
序列。