SqlitePropertyBuilderExtensions.ForSqliteHasColumnType 方法

定义

重载

ForSqliteHasColumnType(PropertyBuilder, String)

配置属性在面向 SQLite 时映射到的列的数据类型。

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

配置属性在面向 SQLite 时映射到的列的数据类型。

ForSqliteHasColumnType(PropertyBuilder, String)

配置属性在面向 SQLite 时映射到的列的数据类型。

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

参数

propertyBuilder
PropertyBuilder

要配置的属性的生成器。

type
String

列的数据类型的名称。

返回

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

适用于

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

配置属性在面向 SQLite 时映射到的列的数据类型。

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

类型参数

TProperty

要配置的属性的类型。

参数

propertyBuilder
PropertyBuilder<TProperty>

要配置的属性的生成器。

type
String

列的数据类型的名称。

返回

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

适用于