阅读背景:

在实体框架中,如何在没有枚举所有可能的DbSet的switch语句的情况下将通用实体添加到其对应的DbSet?

来源:互联网 

I have two types of entities: an employee entity and an office entity, with a one to many relationship between the two such that there are many employees for one office. For EF, a DbSet is created in the context file for each entity:I have two types of entities: an employee entit




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: