using System.ComponentModel.DataAnnotations; using Abp.Application.Services.Dto; using Abp.AutoMapper; using AutoMapper; using WeOnlineApp.Authorization.Users; using IwbZero.Authorization.Base.Users; namespace WeOnlineApp.BaseSystem.Users.Dto { [AutoMapTo(typeof(User))] public class UserUpdateDto : EntityDto { [Required] [StringLength(UserBase.MaxUserNameLength)] public string UserName { get; set; } public int UserType { get; set; } [Required] [StringLength(UserBase.MaxEmailAddressLength)] public string EmailAddress { get; set; } [Required] [StringLength(UserBase.MaxNameLength)] public string Name { get; set; } [StringLength(UserBase.MaxPhoneNumberLength)] public string PhoneNumber { get; set; } public bool IsActive { get; set; } [IgnoreMap] public string RoleNames { get; set; } public int? AccountType { get; set; } [StringLength(UserBase.MaxAccountNoLength)] public string AccountNo { get; set; } } }