SqlServerPropertyBuilderExtensions.ForSqlServerHasColumnType 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
資料行的資料類型名稱。
傳回
相同的產生器實例,以便鏈結多個呼叫。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應