SqlServerPropertyBuilderExtensions.ForSqlServerHasColumnName 方法

定義

多載

ForSqlServerHasColumnName(PropertyBuilder, String)

設定屬性在目標SQL Server時所對應的資料行。

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

設定屬性在目標SQL Server時所對應的資料行。

ForSqlServerHasColumnName(PropertyBuilder, String)

設定屬性在目標SQL Server時所對應的資料行。

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

參數

propertyBuilder
PropertyBuilder

要設定之屬性的產生器。

name
String

資料行名稱。

傳回

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

適用於

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

設定屬性在目標SQL Server時所對應的資料行。

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

類型參數

TProperty

正在設定之屬性的型別。

參數

propertyBuilder
PropertyBuilder<TProperty>

要設定之屬性的產生器。

name
String

資料行名稱。

傳回

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

適用於