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

c# entity-framework-core identityserver4 openid

Question

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
2
11/18/2019 9:22:04 AM

Accepted Answer

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.

2
11/18/2019 9:47:50 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow