با سلام
به هنگام اجرای پروژه که از entityframework 6 استفاده شده خطای زیر نمایش داده میشه.
One or more validation errors were detected during model generation:
EmcAutomation.Models.AspNetUserLogin: : EntityType 'AspNetUserLogin' has no key defined. Define the key for this EntityType.
AspNetUserLogins: EntityType: EntitySet 'AspNetUserLogins' is based on type 'AspNetUserLogin' that has no keys defined.
protected override void OnModelCreating(DbModelBuilder modelBuilder) {
throw new UnintentionalCodeFirstException();
}
با تشکر