insert,update, delete derived entity in entity framework 4.0

Posted by user282807 on Stack Overflow See other posts from Stack Overflow or by user282807
Published on 2010-03-15T03:12:14Z Indexed on 2010/03/15 3:19 UTC
Read the original article Hit count: 709

Filed under:
|

Hi! How do i insert an entity that is derived from another entity. here is my code but it's not working:(applicationreplacement derived from application

Blockquote

ObjectContect _ctx public void AddReplacementApp(Application entity,ApplicationReplacement rentity) {

            _ctx.CreateObjectSet<Application>(rentity);
            _ctx.SaveChanges();
    }

Blockquote

© Stack Overflow or respective owner

Related posts about entity

Related posts about entity-framework