System.InvalidOperationException: 'A key cannot be configured on 'PocketHiAccount' because it is a derived type. The key must be configured on the root type 'IdentityUser<Guid>'. If you did not intend for 'IdentityUser<Guid>' to be included in the model, ensure that it is not included in a DbSet property on your context, referenced in a configuration call to ModelBuilder, or referenced from a navigation property on a type that is included in the model.'
public class ZooDbContext : IdentityDbContext<IdentiryUser, IdentityRole, ObjectId>
還是錯 ㄏㄏ
1 2
System.InvalidOperationException: A key cannot be configured on 'PocketHiAccount' because it is a derived type. The key must be configured on the root type 'IdentityUser<ObjectId>'. If you did not intend for 'IdentityUser<ObjectId>' to be included in the model, ensure that it is not included in a DbSet property on your context, referenced in a configuration call to ModelBuilder, or referenced from a navigation property on a type that is included in the model.