public void Delete(CommonParaModel obj) { using (IDbSession session = this.Db.OpenSession()) { session.Delete(obj); } }
public void SaveOrUpdate(CommonParaModel obj) { using (IDbSession session = this.Db.OpenSession()) { obj.CreateTime = DateTime.Now; session.SaveOrUpdate(obj); } }