示例#1
0
        public bool MarcResolveTitles(
            SqlConnection sqlConnection,
            SqlTransaction sqlTransaction,
            int batchId)
        {
            SqlConnection connection = CustomSqlHelper.CreateConnection(
                CustomSqlHelper.GetConnectionStringFromConnectionStrings("BHL"), sqlConnection);
            SqlTransaction transaction = sqlTransaction;

            using (SqlCommand command = CustomSqlHelper.CreateCommand("MarcResolveTitles", connection, transaction,
                                                                      CustomSqlHelper.CreateInputParameter("MarcImportBatchID", SqlDbType.Int, null, false, batchId)))
            {
                bool result = Convert.ToBoolean(CustomSqlHelper.ExecuteScalar(command));
                return(result);
            }
        }