摘要:
1:验证添加DLLMicrosoft.Practices.EnterpriseLibrary.ValidationSystem.ComponentModel.DataAnnotations添加命名空间:using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;using Microsoft.Practices.EnterpriseLibrary.Validation;加验证public class Customer { [StringLengthValidator(1, 25)] pub... 阅读全文