語言

SqlServerPropertyBuilderExtensions.UseHiLo 方法

定義

多載

名稱 Description
UseHiLo(PropertyBuilder, String, String)

設定關鍵屬性,使其使用基於序列的 hi-lo 模式來產生新實體的值,以針對SQL Server。 此方法將性質設定為 OnAdd。

UseHiLo<TProperty>(PropertyBuilder<TProperty>, String, String)

設定關鍵屬性,使其使用基於序列的 hi-lo 模式來產生新實體的值,以針對SQL Server。 此方法將性質設定為 OnAdd。

UseHiLo(PropertyBuilder, String, String)

來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs

設定關鍵屬性,使其使用基於序列的 hi-lo 模式來產生新實體的值,以針對SQL Server。 此方法將性質設定為 OnAdd。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder UseHiLo(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string? name = default, string? schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder UseHiLo(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string name = default, string schema = default);
static member UseHiLo : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function UseHiLo (propertyBuilder As PropertyBuilder, Optional name As String = Nothing, Optional schema As String = Nothing) As PropertyBuilder

參數

propertyBuilder
PropertyBuilder

正在配置的物業的建商。

name
String

序列的名稱。

schema
String

序列的架構。

傳回

同一個建構實例,這樣可以串接多個呼叫。

備註

更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。

適用於

UseHiLo<TProperty>(PropertyBuilder<TProperty>, String, String)

來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs
來源:
SqlServerPropertyBuilderExtensions.cs

設定關鍵屬性,使其使用基於序列的 hi-lo 模式來產生新實體的值,以針對SQL Server。 此方法將性質設定為 OnAdd。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> UseHiLo<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string? name = default, string? schema = default);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> UseHiLo<TProperty>(this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string name = default, string schema = default);
static member UseHiLo : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function UseHiLo(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), Optional name As String = Nothing, Optional schema As String = Nothing) As PropertyBuilder(Of TProperty)

類型參數

TProperty

配置的房產類型。

參數

propertyBuilder
PropertyBuilder<TProperty>

正在配置的物業的建商。

name
String

序列的名稱。

schema
String

序列的架構。

傳回

同一個建構實例,這樣可以串接多個呼叫。

備註

更多資訊與範例請參閱「建模實體類型與關係」,以及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。

適用於