Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Adding new Role model attributes issues #3392


User avatar
0
gsarmiento created

Hi, I've added new attributes (Description, StatusId) to Role model, but under debug mode program breaks on these two attributes when it tries to retrieve a list of Roles.

Do I have to register this attributes in some Role abstract class?

public class Role : AbpRole<User>
    {
        //Can add application specific role properties here

       public virtual string Description { get; set; }
        public virtual long StatusId { get; set; }
        
        public Role()
        {

        }

        public Role(int? tenantId, string displayName)
            : base(tenantId, displayName)
        {

        }

        public Role(int? tenantId, string name, string displayName)
            : base(tenantId, name, displayName)
        {

        }
    }

No answer yet!