SqlServerComplexTypePropertyBuilderExtensions.UseHiLo 方法

定义

重载

UseHiLo(ComplexTypePropertyBuilder, String, String)

将键属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 OnAdd

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

将键属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 OnAdd

UseHiLo(ComplexTypePropertyBuilder, String, String)

将键属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 OnAdd

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

参数

propertyBuilder
ComplexTypePropertyBuilder

要配置的属性的生成器。

name
String

序列的名称。

schema
String

序列的架构。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问SQL Server和Azure SQL数据库

适用于

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

将键属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 OnAdd

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

类型参数

TProperty

要配置的属性的类型。

参数

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

要配置的属性的生成器。

name
String

序列的名称。

schema
String

序列的架构。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 EF Core 访问SQL Server和Azure SQL数据库

适用于