ABP 扩展 Role 数据实体(新增字段)

Role 数据实体 继承自 AbpRole 类,并且 AbpRole 是 abstract 类型。

所以新增属性直接添加在 Role 中即可。效果如下:

最后再重新执行迁移就生效了。

迁移命令

Add-Migration

Update-Database

以上信息均参考ABP文档:

https://docs.aspnetzero.com/documents/zero/latest/Extending-Existing-Entities

 

 

posted @ 2019-03-04 15:11  Jöhan  阅读(417)  评论(0编辑  收藏  举报