Page 1 of 1

Adding new Role model attributes issues

PostPosted: Wed Jun 14, 2017 4:06 pm
by gsarmiento
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?

Code: Select all 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)
        {

        }
    }