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

資料行的資料類型名稱。

傳回

相同的產生器實例,以便鏈結多個呼叫。

適用於