Questions tagged «multi-mapping»

8
多映射器创建对象层次结构
我一直在玩这个游戏,因为它看起来很像已记录的帖子/用户示例,但它略有不同,对我不起作用。 假定以下简化设置(联系人具有多个电话号码): public class Contact { public int ContactID { get; set; } public string ContactName { get; set; } public IEnumerable<Phone> Phones { get; set; } } public class Phone { public int PhoneId { get; set; } public int ContactID { get; set; } // foreign key public …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.