public void LoadProperty <T>(T entity, Expression <Func <T, object> > selector) where T : class { using (var ctx = new OrderITEntities()) { ctx.CreateObjectSet <T>().Attach(entity); ctx.LoadProperty <T>(entity, selector); } }
public void LoadProperty <T>(T entity, Expression <Func <T, object> > selector) where T : class { using (var ctx = new OrderITEntities()) { ctx.CreateObjectSet <T>().Attach(entity); ctx.LoadProperty <T>(entity, selector); } }