实体框架数据库第一 - 关系 [英] Entity Framework Database First - Relationships
问题描述
在实体更新的时候,尝试使用运行自定义工具避免错误。只需右键单击您的模型和运行自定义工具。
I think I have CodeFirst understood. Now I know database first EF design is targeted for existing databases, but if I were to quickly go in and create a new database in management studio and create some tables, is it normal that you would create relationships for the tables in management studio or in the edmx designer, I tried in the edmx but got errors when I went to debug. What is the best practice here and what are the correct steps to create Associations between tables if I were to do it in the designer and how does the database in management studio know to update? Any tips/advice is appreciated.
In times that the entity is updated, try to Run Custom Tool your model to avoid errors. just Right Click your model and Run Custom Tool.
这篇关于实体框架数据库第一 - 关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!