語言

StringColumnConfiguration 類別

定義

設定用來儲存字串值的資料庫資料行。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。

public class StringColumnConfiguration : System.Data.Entity.ModelConfiguration.Configuration.LengthColumnConfiguration
type StringColumnConfiguration = class
    inherit LengthColumnConfiguration
Public Class StringColumnConfiguration
Inherits LengthColumnConfiguration
繼承

方法

名稱 Description
Equals(Object)

設定用來儲存字串值的資料庫資料行。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。

GetHashCode()

設定用來儲存字串值的資料庫資料行。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。

GetType()

取得目前執行個體的 Type。

HasColumnOrder(Nullable<Int32>)

設定資料庫資料行的順序。

HasColumnType(String)

設定資料庫資料行的資料型別。

HasMaxLength(Nullable<Int32>)

設定此屬性具有指定的最大長度。

IsFixedLength()

設定此資料行具有固定長度。 使用 HasMaxLength 設定此屬性的固定長度。

IsMaxLength()

設定此資料行允許資料庫提供者支援的最大長度。

IsOptional()

將此資料行設定為 optional。

IsRequired()

將此資料行設定為 required。

IsUnicode()

設定此資料行支援 Unicode 字串內容。

IsUnicode(Nullable<Boolean>)

設定此資料行是否支援 Unicode 字串內容。

IsVariableLength()

設定此資料行具有變動長度。 根據預設,資料行具有變動長度。

ToString()

設定用來儲存字串值的資料庫資料行。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder 。

適用於