会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ATPKING
菜,终究一天会成为历史。
博客园
首页
新随笔
联系
订阅
管理
2011年5月19日
关于EntityFramework 4.1 中Code First方式的一些记录
摘要: 1、在一对多关系中,我们需要指定一个外键,同时我们使用virtual 这个标识标识另外一个对象的引用 比如说以下模型 public class Phone{ public int Id{get;set;} public int PhoneBrandId{get;set;} public virtual PhoneBrand PhoneBrand{get;set;}}public class Pho...
阅读全文
posted @ 2011-05-19 16:09 Atpking
阅读(351)
评论(0)
推荐(0)
编辑
公告