共用方式為


LengthPropertyConfiguration 類別

定義

用來針對實體型別或複雜型別設定有長度 Facet 的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

public abstract class LengthPropertyConfiguration : System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
type LengthPropertyConfiguration = class
    inherit PrimitivePropertyConfiguration
Public MustInherit Class LengthPropertyConfiguration
Inherits PrimitivePropertyConfiguration
繼承
LengthPropertyConfiguration
衍生

方法

Equals(Object)

用來針對實體型別或複雜型別設定有長度 Facet 的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

Equals(Object)

用來針對實體型別或複雜型別設定有長度 Facet 的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

(繼承來源 PrimitivePropertyConfiguration)
GetHashCode()

用來針對實體型別或複雜型別設定有長度 Facet 的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

GetHashCode()

用來針對實體型別或複雜型別設定有長度 Facet 的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

(繼承來源 PrimitivePropertyConfiguration)
GetType()

用來針對實體型別或複雜型別設定有長度 Facet 的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

GetType()

取得目前執行個體的 Type

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

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

(繼承來源 PrimitivePropertyConfiguration)
HasColumnName(String)

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

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

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

(繼承來源 PrimitivePropertyConfiguration)
HasColumnType(String)

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

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

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

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

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

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

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

HasParameterName(String)

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

(繼承來源 PrimitivePropertyConfiguration)
IsConcurrencyToken()

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

(繼承來源 PrimitivePropertyConfiguration)
IsConcurrencyToken(Nullable<Boolean>)

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

(繼承來源 PrimitivePropertyConfiguration)
IsFixedLength()

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

IsMaxLength()

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

IsOptional()

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

(繼承來源 PrimitivePropertyConfiguration)
IsRequired()

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

(繼承來源 PrimitivePropertyConfiguration)
IsVariableLength()

設定此屬性具有變動長度。 根據預設,屬性具有變動長度。

ToString()

用來針對實體型別或複雜型別設定有長度 Facet 的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

ToString()

用來針對實體型別或複雜型別設定有長度 Facet 的屬性。 此組態功能可透過 Code First Fluent API 取得,請參閱 DbModelBuilder

(繼承來源 PrimitivePropertyConfiguration)

適用於