TenantUpdateDto.cs 623 B

1234567891011121314151617181920212223
  1. using System.ComponentModel.DataAnnotations;
  2. using Abp.Application.Services.Dto;
  3. using Abp.AutoMapper;
  4. using WeApp.MultiTenancy;
  5. using IwbZero.MultiTenancy;
  6. namespace WeApp.BaseSystem.Tenants.Dto
  7. {
  8. [AutoMapTo(typeof(Tenant))]
  9. public class TenantUpdateDto : EntityDto
  10. {
  11. [Required]
  12. [StringLength(TenantBase.MaxTenancyNameLength)]
  13. [RegularExpression(TenantBase.TenancyNameRegex)]
  14. public string TenancyName { get; set; }
  15. [Required]
  16. [StringLength(TenantBase.MaxNameLength)]
  17. public string Name { get; set; }
  18. public bool IsActive { get; set; }
  19. }
  20. }