摘要: 还是以这两个表为例子country包含零个或多个city, 这个外键关系是我后来加上去,原来没有。 然后再用Power Tool逆向, 产生如下代码 1: using System.ComponentModel.DataAnnotations.Schema; 2: using System.Data.Entity.ModelConfiguration; 3: 4: namespace EFEntity.Models.Mapping 5: { 6: public class cityMap : EntityTypeConfiguration 7:... 阅读全文
posted @ 2013-09-18 12:46 grkin 阅读(502) 评论(0) 推荐(0) 编辑