/// <summary> /// 执行数据操作 /// </summary> /// <param name="operations"></param> public void Execute(IDBOperation operations) { this.Open(); try { operations.Execute(sqlHelper); } catch (Exception ex) { this.Close(); throw new Exception(ex.Message + " Commond:" + operations.GetCommond()); } }