RuntimeSequence 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RuntimeSequence(String, RuntimeModel, Type, String, Int64, Int32, Boolean, Nullable<Int64>, Nullable<Int64>)
初始化 RuntimeSequence 类的新实例。
public RuntimeSequence (string name, Microsoft.EntityFrameworkCore.Metadata.RuntimeModel model, Type type, string? schema = default, long startValue = 1, int incrementBy = 1, bool cyclic = false, long? minValue = default, long? maxValue = default);
new Microsoft.EntityFrameworkCore.Metadata.RuntimeSequence : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeModel * Type * string * int64 * int * bool * Nullable<int64> * Nullable<int64> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeSequence
Public Sub New (name As String, model As RuntimeModel, type As Type, Optional schema As String = Nothing, Optional startValue As Long = 1, Optional incrementBy As Integer = 1, Optional cyclic As Boolean = false, Optional minValue As Nullable(Of Long) = Nothing, Optional maxValue As Nullable(Of Long) = Nothing)
参数
- name
- String
序列名称。
- model
- RuntimeModel
模型。
- type
- Type
生成的值的类型。
- schema
- String
架构。
- startValue
- Int64
初始值。
- incrementBy
- Int32
值递增。
- cyclic
- Boolean
序列是否是循环的。
适用于
RuntimeSequence(String, RuntimeModel, Type, String, Int64, Int32, Boolean, Nullable<Int64>, Nullable<Int64>, Boolean)
初始化 RuntimeSequence 类的新实例。
public RuntimeSequence (string name, Microsoft.EntityFrameworkCore.Metadata.RuntimeModel model, Type type, string? schema = default, long startValue = 1, int incrementBy = 1, bool cyclic = false, long? minValue = default, long? maxValue = default, bool modelSchemaIsNull = false);
new Microsoft.EntityFrameworkCore.Metadata.RuntimeSequence : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeModel * Type * string * int64 * int * bool * Nullable<int64> * Nullable<int64> * bool -> Microsoft.EntityFrameworkCore.Metadata.RuntimeSequence
Public Sub New (name As String, model As RuntimeModel, type As Type, Optional schema As String = Nothing, Optional startValue As Long = 1, Optional incrementBy As Integer = 1, Optional cyclic As Boolean = false, Optional minValue As Nullable(Of Long) = Nothing, Optional maxValue As Nullable(Of Long) = Nothing, Optional modelSchemaIsNull As Boolean = false)
参数
- name
- String
序列名称。
- model
- RuntimeModel
模型。
- type
- Type
生成的值的类型。
- schema
- String
架构。
- startValue
- Int64
初始值。
- incrementBy
- Int32
值递增。
- cyclic
- Boolean
序列是否是循环的。
- modelSchemaIsNull
- Boolean
一个值,该值指示是否 ModelSchema 为 null。