MaxLengthAttributeConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于处理在模型中的属性上找到的 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
- 继承
-
MaxLengthAttributeConvention
构造函数
MaxLengthAttributeConvention() |
用于处理在模型中的属性上找到的 MaxLengthAttribute 实例的约定。 |
方法
Apply(ConventionPrimitivePropertyConfiguration, MaxLengthAttribute) |
用于处理在模型中的属性上找到的 MaxLengthAttribute 实例的约定。 |
Apply(ConventionPrimitivePropertyConfiguration, TAttribute) |
将此约定应用于应用了 TAttribute 类型的属性的属性。 (继承自 PrimitivePropertyAttributeConfigurationConvention<TAttribute>) |
Properties() |
开始配置适用于模型中的所有属性的轻型约定。 (继承自 Convention) |
Properties<T>() |
开始配置适用于模型中指定类型的所有基元属性的轻型约定。 (继承自 Convention) |
Types() |
开始配置适用于模型中所有映射类型的轻型约定。 (继承自 Convention) |
Types<T>() |
开始配置轻量级约定,该约定适用于派生自指定类型或实现指定类型的模型中的所有映射类型。 (继承自 Convention) |