語言

MaxLengthAttributeConvention 類別

定義

用來處理模型中屬性上的 實例 MaxLengthAttribute 。

public class MaxLengthAttributeConvention : System.Data.Entity.ModelConfiguration.Conventions.PrimitivePropertyAttributeConfigurationConvention<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
type MaxLengthAttributeConvention = class
    inherit PrimitivePropertyAttributeConfigurationConvention<MaxLengthAttribute>
Public Class MaxLengthAttributeConvention
Inherits PrimitivePropertyAttributeConfigurationConvention(Of MaxLengthAttribute)
繼承
繼承
MaxLengthAttributeConvention

建構函式

名稱 Description
MaxLengthAttributeConvention()

用來處理模型中屬性上的 實例 MaxLengthAttribute 。

方法

名稱 Description
Apply(ConventionPrimitivePropertyConfiguration, MaxLengthAttribute)

將此慣例應用於屬性為 TAttribute 的屬性。

Apply(ConventionPrimitivePropertyConfiguration, TAttribute)

將此慣例應用於屬性為 TAttribute 的屬性。

(繼承來源 PrimitivePropertyAttributeConfigurationConvention<TAttribute>)
Properties()

開始配置適用於模型中所有屬性的輕量級慣例。

(繼承來源 Convention)
Properties<T>()

開始配置一套輕量級慣例,適用於模型中指定類型的所有原始屬性。

(繼承來源 Convention)
Types()

開始配置一套適用於模型中所有映射型態的輕量級慣例。

(繼承來源 Convention)
Types<T>()

開始配置一套輕量級慣例,適用於模型中所有源自或實作指定型別的映射型別。

(繼承來源 Convention)

適用於