【发布时间】:2011-01-10 19:33:14
【问题描述】:
我生成了一个如下所示的 edm 文件:
如何将其转换为多对多 edm?我将使用 POCO,所以我希望它看起来像:
public class User{
public List<Role> Roles {get; set;}
/* Other prop here */
}
public class Role{
public List<User> Users {get; set;}
/* Other prop here */
}
使用 EF4。
【问题讨论】:
标签: entity-framework entity-framework-4 many-to-many poco