共用方式為


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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>)

來源:
RelationalModelBuilderExtensions.cs
來源:
RelationalModelBuilderExtensions.cs

以關係資料庫為目標時,設定資料庫順序。

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>

執行序列組態的動作。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於