Exemple #1
0
        private void CatchException(MethodName methodName, String connectionString, Exception exception, Object executionContext, SqlBulkCopyContext sqlBulkCopyContext)
        {
            var e = new CommandErrorEventArgs(methodName, connectionString, exception, executionContext, sqlBulkCopyContext);

            SqlServerDatabase.OnCommandError(e);
            if (e.ThrowException == true)
            {
                var ex = CreateException(e);
            }
        }