共用方式為


StringPropertyConfiguration 類別

定義

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

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

方法

Equals(Object)

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

Equals(Object)

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

(繼承來源 LengthPropertyConfiguration)
GetHashCode()

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

GetHashCode()

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

(繼承來源 LengthPropertyConfiguration)
GetType()

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

GetType()

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

(繼承來源 LengthPropertyConfiguration)
HasColumnAnnotation(String, Object)

針對用來儲存屬性的資料庫資料行,在模型中設定批註。 稍後可以在處理資料行時使用批註值,例如在建立移轉時。

HasColumnAnnotation(String, Object)

針對用來儲存屬性的資料庫資料行,在模型中設定批註。 稍後可以在處理資料行時使用批註值,例如在建立移轉時。

(繼承來源 PrimitivePropertyConfiguration)
HasColumnName(String)

設定用來儲存此屬性的資料庫資料行名稱。

HasColumnOrder(Nullable<Int32>)

設定用來儲存此屬性之資料庫資料行的順序。 當實體型別有複合索引鍵時,這個方法也會用來指定索引鍵排序。

HasColumnType(String)

設定用來儲存此屬性之資料庫資料行的資料型別。

HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>)

設定資料庫如何產生此屬性的值。

HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>)

設定資料庫如何產生此屬性的值。

HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>)

設定資料庫如何產生此屬性的值。

(繼承來源 PrimitivePropertyConfiguration)
HasDatabaseGeneratedOption(Nullable<DatabaseGeneratedOption>)

設定資料庫如何產生此屬性的值。

(繼承來源 PrimitivePropertyConfiguration)
HasMaxLength(Nullable<Int32>)

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

HasParameterName(String)

設定這個屬性預存程式中所使用的參數名稱。

(繼承來源 PrimitivePropertyConfiguration)
IsConcurrencyToken()

設定此屬性當做開放式並行存取 Token 使用。

IsConcurrencyToken(Nullable<Boolean>)

設定此屬性是否當做開放式並行存取 Token 使用。

IsFixedLength()

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

IsMaxLength()

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

IsOptional()

將屬性設定為選擇性。 用來儲存這個屬性的資料庫資料行將會是 nullable。 System.string 屬性預設為選擇性。

IsRequired()

將屬性設定為必要的。 用來儲存這個屬性的資料庫資料行將不會是 nullable。

IsUnicode()

設定此屬性支援 Unicode 字串內容。

IsUnicode(Nullable<Boolean>)

設定此屬性是否支援 Unicode 字串內容。

IsVariableLength()

設定此屬性具有變動長度。 System.string 屬性預設為可變長度。

ToString()

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

ToString()

用來設定 System.string 實體類型或複雜類型的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

(繼承來源 LengthPropertyConfiguration)

適用於