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(); } }
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(); }; }