How to add new column in Client table in IdentityServer 4 using CodeFirst approach?

笑着哭i 提交于 2019-12-24 07:16:03

问题


I am implementing IdentityServer4. I tried to add new field CustomerId to Client. While doing migration, it is creating new table with name as Client instead of adding new column in Clients table.

namespace xx.xx.Models {
    [Table("Clients")]
    public class ApplicationClient : Client
    {
        public string CustomerId { get; set; }
    } 
}

回答1:


They don't provide the ability to extend the model in this way. However ClientProperties does exist so you could use that to store custom properties as key/value pairs.



来源:https://stackoverflow.com/questions/58911337/how-to-add-new-column-in-client-table-in-identityserver-4-using-codefirst-approa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!