MVC部份属性验证控件-创新互联

http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.displayattribute.aspx

网站建设哪家好,找成都创新互联!专注于网页设计、网站建设、微信开发、小程序制作、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了左权免费建站欢迎大家使用!

The System.ComponentModel.DataAnnotations namespace provides attribute classes that are used to define metadata for ASP.NET MVC and ASP.NET data controls.

Classes
ClassDescription
AssociatedMetadataTypeTypeDescriptionProviderExtends the metadata information for a class by adding attributes and property information that is defined in an associated class.
  AssociationAttributeSpecifies that an entity member represents a data relationship, such as a foreign key relationship.
BindableTypeAttributeSpecifies whether a type is typically used for binding.
CompareAttributeProvides an attribute that compares two properties.
  ConcurrencyCheckAttributeSpecifies that a property participates in optimistic concurrency checks.
CreditCardAttributeSpecifies that a data field value is a credit card number.
  CustomValidationAttributeSpecifies a custom validation method that is used to validate a property or class instance.
  DataTypeAttributeSpecifies the name of an additional type to associate with a data field.
  DisplayAttributeProvides a general-purpose attribute that lets you specify localizable strings for types and members of entity partial classes.
  DisplayColumnAttributeSpecifies the column that is displayed in the referred table as a foreign-key column.
  DisplayFormatAttributeSpecifies how data fields are displayed and formatted by ASP.NET Dynamic Data.
  EditableAttributeIndicates whether a data field is editable.
EmailAddressAttributeValidates an email address.
  EnumDataTypeAttributeEnables a .NET Framework enumeration to be mapped to a data column.
FileExtensionsAttributeValidates file name extensions.
  FilterUIHintAttributeRepresents an attribute that is used to specify the filtering behavior for a column.
  KeyAttributeDenotes one or more properties that uniquely identify an entity.
MaxLengthAttributeSpecifies the maximum length of array or string data allowed in a property.
MetadataTypeAttributeSpecifies the metadata class to associate with a data model class.
MinLengthAttributeSpecifies the minimum length of array of string data allowed in a property.
PhoneAttributeSpecifies that a data field value is a well-formed phone number using a regular expression for phone numbers.
  RangeAttributeSpecifies the numeric range constraints for the value of a data field.
  RegularExpressionAttributeSpecifies that a data field value in ASP.NET Dynamic Data must match the specified regular expression.
  RequiredAttributeSpecifies that a data field value is required.
ScaffoldColumnAttributeSpecifies whether a class or data column uses scaffolding.
ScaffoldTableAttributeSpecifies whether a class or data table uses scaffolding.
  StringLengthAttributeSpecifies the minimum and maximum length of characters that are allowed in a data field.
  TimestampAttributeSpecifies the data type of the column as a row version.
  UIHintAttributeSpecifies the template or user control that Dynamic Data uses to display a data field.
UrlAttributeProvides URL validation.
  ValidationAttributeServes as the base class for all validation attributes.
  ValidationContextDescribes the context in which a validation check is performed.
  ValidationExceptionRepresents the exception that occurs during validation of a data field when the ValidationAttributeclass is used.
  ValidationResultRepresents a container for the results of a validation request.
  ValidatorDefines a helper class that can be used to validate objects, properties, and methods when it is included in their associated ValidationAttribute attributes.

网页标题:MVC部份属性验证控件-创新互联
地址分享:http://bzwzjz.com/article/dioiie.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 阿坝网站设计 成都网站制作 移动网站建设 手机网站制作 成都做网站建设公司 成都企业网站设计 成都响应式网站建设 网站设计 成都网站制作 手机网站制作设计 网站建设费用 重庆网站建设 定制网站设计 手机网站制作 网站制作 网站建设 定制网站设计 成都网站设计 外贸网站设计方案 成都网站设计 网站制作公司 成都网站建设