问题
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