mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using JetBrains.Annotations;
|
|
using Volo.Abp.ObjectExtending;
|
|
using Volo.Abp.Validation;
|
|
|
|
namespace Volo.Abp.Identity
|
|
{
|
|
public abstract class IdentityUserCreateOrUpdateDtoBase : ExtensibleObject
|
|
{
|
|
[Required]
|
|
[DynamicStringLength(typeof(IdentityUserConsts), nameof(IdentityUserConsts.MaxUserNameLength))]
|
|
public string UserName { get; set; }
|
|
|
|
[DynamicStringLength(typeof(IdentityUserConsts), nameof(IdentityUserConsts.MaxNameLength))]
|
|
public string Name { get; set; }
|
|
|
|
[DynamicStringLength(typeof(IdentityUserConsts), nameof(IdentityUserConsts.MaxSurnameLength))]
|
|
public string Surname { get; set; }
|
|
|
|
[Required]
|
|
[EmailAddress]
|
|
[DynamicStringLength(typeof(IdentityUserConsts), nameof(IdentityUserConsts.MaxEmailLength))]
|
|
public string Email { get; set; }
|
|
|
|
[DynamicStringLength(typeof(IdentityUserConsts), nameof(IdentityUserConsts.MaxPhoneNumberLength))]
|
|
public string PhoneNumber { get; set; }
|
|
|
|
public bool TwoFactorEnabled { get; set; }
|
|
|
|
public bool LockoutEnabled { get; set; }
|
|
|
|
[CanBeNull]
|
|
public string[] RoleNames { get; set; }
|
|
|
|
protected IdentityUserCreateOrUpdateDtoBase() : base(false)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|