开发者

insert,update, delete derived entity in entity framework 4.0

How do i insert an entity that is derived fr开发者_如何学Com another entity. here is my code but it's not working:(applicationreplacement derived from application

public void AddReplacementApp(Application entity,ApplicationReplacement rentity)
{            
     _ctx.CreateObjectSet<Application>().AddObject(rentity);
     _ctx.SaveChanges();    
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜