EF Code First 注意事项

1、异常“实体类型不存在于上下文中”

Context类中不包含该实体类型的DbSet,有可能关联关系没有正确设置

原文地址:https://www.cnblogs.com/cnhxz/p/3926087.html