Example #1
0
 private void Update()
 {
     EditHelpers.DetachAllEntities <User>(_ctx);
     Departments = _ctx.Departments.ToList();
     Positions   = _ctx.Positions.ToList();
     Ranks       = _ctx.Ranks.ToList();
     _ctx.Users.Include(x => x.Position).Include(x => x.Department).Include(x => x.Rank).Load();
     grid.ItemsSource = _ctx.Users.Local;
 }
Example #2
0
 private void Update()
 {
     EditHelpers.DetachAllEntities <Rank>(_ctx);
     _ctx.Ranks.Load();
     grid.ItemsSource = _ctx.Ranks.Local;
 }
Example #3
0
 private void Update()
 {
     EditHelpers.DetachAllEntities <Position>(_ctx);
     _ctx.Positions.Load();
     grid.ItemsSource = _ctx.Positions.Local;
 }
Example #4
0
 private void Update()
 {
     EditHelpers.DetachAllEntities <Department>(_ctx);
     _ctx.Departments.Load();
     grid.ItemsSource = _ctx.Departments.Local;
 }