SqlServerPropertyBuilderExtensions.ForSqlServerHasColumnType 方法

定义

重载

ForSqlServerHasColumnType(PropertyBuilder, String)

配置属性在面向SQL Server时映射到的列的数据类型。 这应该是完整的类型名称,包括精度、小数位数、长度等。

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

配置属性在面向SQL Server时映射到的列的数据类型。 这应该是完整的类型名称,包括精度、小数位数、长度等。

ForSqlServerHasColumnType(PropertyBuilder, String)

配置属性在面向SQL Server时映射到的列的数据类型。 这应该是完整的类型名称,包括精度、小数位数、长度等。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ForSqlServerHasColumnType (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, string typeName);
static member ForSqlServerHasColumnType : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function ForSqlServerHasColumnType (propertyBuilder As PropertyBuilder, typeName As String) As PropertyBuilder

参数

propertyBuilder
PropertyBuilder

要配置的属性的生成器。

typeName
String

列的数据类型的名称。

返回

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

适用于

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

配置属性在面向SQL Server时映射到的列的数据类型。 这应该是完整的类型名称,包括精度、小数位数、长度等。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> ForSqlServerHasColumnType<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, string typeName);
static member ForSqlServerHasColumnType : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function ForSqlServerHasColumnType(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), typeName As String) As PropertyBuilder(Of TProperty)

类型参数

TProperty

要配置的属性的类型。

参数

propertyBuilder
PropertyBuilder<TProperty>

要配置的属性的生成器。

typeName
String

列的数据类型的名称。

返回

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

适用于