Exemple #1
0
 private void refreshView()
 {
     DBWeb.ZamowienieView view = this[typeof(DBWeb.ZamowienieView)] as DBWeb.ZamowienieView;
     if (view != null)
     {
         ContextManager.WebContext.Refresh(System.Data.Objects.RefreshMode.StoreWins, view);
     }
 }
Exemple #2
0
 public ZamowienieViewContext(object row)
     : base(null, true)
 {
     DBWeb.ZamowienieView view = row as DBWeb.ZamowienieView;
     if (view != null)
     {
         this.SetData(typeof(DBWeb.Zamowienie), view.Zamowienie);
         this.AddData(typeof(DBWeb.ZamowienieView), view);
     }
     else
     {
         this.SetData(row.GetType(), row);
     }
 }