コード例 #1
0
 public void Save(nwdbDataType nw)
 {
     Debug.Print("Save called on:" + nw.GetType() + "params:" + nw.ToString());
     using (ITransaction transaction = i.BeginTransaction())
     {
         i.SaveOrUpdate(nw);
         transaction.Commit();
     }
 }
コード例 #2
0
 public void Delete(nwdbDataType nw)
 {
     Debug.Print("Delete called on:" + nw.GetType() + "param:" + nw);
     if (nw == null)
     {
         return;
     }
     ;
     using (ITransaction transaction = i.BeginTransaction())
     {
         i.Delete(nw);
         transaction.Commit();
     };
 }