Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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; }
    } 
}
like image 464
Manish Avatar asked Oct 19 '25 01:10

Manish


1 Answers

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.

like image 52
mackie Avatar answered Oct 21 '25 14:10

mackie