SqlServerPropertyExtensions.SetHiLoSequenceSchema 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SetHiLoSequenceSchema(IConventionProperty, String, Boolean) |
設定要用於 hi-lo 序列的架構。 |
SetHiLoSequenceSchema(IMutableProperty, String) |
設定要用於 hi-lo 序列的架構。 |
SetHiLoSequenceSchema(IConventionProperty, String, Boolean)
設定要用於 hi-lo 序列的架構。
public static void SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string schema, bool fromDataAnnotation = false);
public static string SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string schema, bool fromDataAnnotation = false);
public static string? SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? schema, bool fromDataAnnotation = false);
static member SetHiLoSequenceSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
static member SetHiLoSequenceSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Sub SetHiLoSequenceSchema (property As IConventionProperty, schema As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetHiLoSequenceSchema (property As IConventionProperty, schema As String, Optional fromDataAnnotation As Boolean = false) As String
參數
- property
- IConventionProperty
屬性。
- schema
- String
要使用的架構。
- fromDataAnnotation
- Boolean
指出是否使用資料批註來指定組態。
傳回
已設定的值。
適用於
SetHiLoSequenceSchema(IMutableProperty, String)
設定要用於 hi-lo 序列的架構。
public static void SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string schema);
public static void SetHiLoSequenceSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? schema);
static member SetHiLoSequenceSchema : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetHiLoSequenceSchema (property As IMutableProperty, schema As String)
參數
- property
- IMutableProperty
屬性。
- schema
- String
要使用的架構。