共用方式為


LengthColumnConfiguration 類別

定義

用來針對實體型別或複雜型別設定有長度 Facet 的資料行。 此組態功能是由 Code First Fluent API 公開,請參閱 DbModelBuilder

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

方法

Equals(Object)

用來針對實體型別或複雜型別設定有長度 Facet 的資料行。 此組態功能是由 Code First Fluent API 公開,請參閱 DbModelBuilder

GetHashCode()

用來針對實體型別或複雜型別設定有長度 Facet 的資料行。 此組態功能是由 Code First Fluent API 公開,請參閱 DbModelBuilder

GetType()

取得目前執行個體的 Type

HasColumnOrder(Nullable<Int32>)

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

(繼承來源 PrimitiveColumnConfiguration)
HasColumnType(String)

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

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

設定此資料行具有指定的最大長度。

IsFixedLength()

設定此資料行具有固定長度。

IsMaxLength()

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

IsOptional()

將基本資料行設定為 optional。

(繼承來源 PrimitiveColumnConfiguration)
IsRequired()

將基本資料行設定為 required。

(繼承來源 PrimitiveColumnConfiguration)
IsVariableLength()

設定此資料行具有變動長度。

ToString()

用來針對實體型別或複雜型別設定有長度 Facet 的資料行。 此組態功能是由 Code First Fluent API 公開,請參閱 DbModelBuilder

適用於