Class Edit
Assembly: DataWeb.Core.dll
Syntax
public class Edit : IValidatableObject
Properties
Email
Declaration
[Required(ErrorMessage = "Account.Common.Email_Required")]
[StringLength(256, ErrorMessage = "Account.Common.Email_NotValid")]
[EmailAddress(ErrorMessage = "Account.Common.Email_NotValid")]
public string Email { get; set; }
Property Value
UserName
Declaration
[Required(ErrorMessage = "Account.Common.UserName_Required")]
[StringLength(256, MinimumLength = 5, ErrorMessage = "Account.Common.UserName_Length")]
[RegularExpression("^[a-zA-Z0-9@_.\\!\\*\\-\\#\\$]*$", ErrorMessage = "Account.Common.UserName_InvalidChars")]
public string UserName { get; set; }
Property Value
Methods
Validate(ValidationContext)
Determines whether the specified object is valid.
Declaration
public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Returns
Implements