简体   繁体   English

MVC5 Code First 模型缺少 AspNetUserRoles

[英]MVC5 Code First model is missing AspNetUserRoles

I just generated code first model from existing database in which I have asp.net identity 2.0 tables.我刚刚从现有数据库中生成了代码优先模型,其中我有 asp.net 身份 2.0 表。 From what I can see, the AspNetUserRoles cs file is missing although I've selected the table when I was creating the model.据我所知,尽管我在创建模型时选择了表格,但 AspNetUserRoles cs 文件丢失了。

Did anyone else stumble with this problem while generating the code first model from existing database?在从现有数据库生成代码优先模型时,有没有其他人遇到过这个问题?

该类是IdentityUserRole ,但它不会存在于您的代码中的任何位置,因为它是实体框架标识代码的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM