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(); }; }
public virtual bool DeleteByLongName(Type t, string n) { nwdbDataType nw = Find(t, n); if (nw == null) { // Not Found return(false); } else { Delete(nw); return(false); } }
public void Add2(nwdbDataType nw) { }