Exemple #1
0
 public OperationResult ExecuteNonQuery(string serviceName, string connectionName, SqlCommandObject[] sqlScripts)
 {
     try
     {
         DataPortal portal = new DataPortal();
         return portal.ExecuteNonQuery(serviceName, connectionName, sqlScripts);
     }
     catch (Exception ex)
     {
         return new OperationResult() { Message = ex.Message };
     }
 }
Exemple #2
0
 public OperationResult ExecuteNonQuery(string serviceName, string connectionName, string commandText, params object[] parameterValues)
 {
     try
     {
         DataPortal portal = new DataPortal();
         return portal.ExecuteNonQuery(serviceName, connectionName, commandText, parameterValues);
     }
     catch (Exception ex)
     {
         return new OperationResult() { Message = ex.Message };
     }
 }