SqlServerPropertyBuilderExtensions.UseHiLo 方法

定义

重载

UseHiLo(PropertyBuilder, String, String)

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

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

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

UseHiLo(PropertyBuilder, String, String)

Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs

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

Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs
Source:
SqlServerPropertyBuilderExtensions.cs

将键属性配置为在面向SQL Server时使用基于序列的 hi-lo 模式为新实体生成值。 此方法将 属性设置为 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数据库

适用于