Base solution for your next web application
Open Closed

Max Tenancy Name Length #10763


User avatar
0
QuickApp created

What is your product version? v10.2.0 What is your product type (Angular or MVC)? Angular What is product framework type (.net framework or .net core)? .Net Core

Hi, Migration does not detect any changes even though I made the following change in Project.Core/MultiTenancy/Tenant.cs:

    [Required]
    
    [StringLength(MaxTenancyNameLength)]
    
    [MinLength(TenantConsts.MinNameLength)]
    
    public override string TenancyName { get; set; }
    

TenantConsts.MinNameLength= 3 MaxTenancyNameLength= 64


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @QuickApp

    It is better to set this in OnModelCreating of your DbContext using fluent configuration.