NonInventPurchasingSystem/CPRNIMS.Domain/Services/OutputParamMessage.cs
2026-01-20 07:44:30 +08:00

21 lines
655 B
C#

using Microsoft.Data.SqlClient;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CPRNIMS.Domain.Services
{
public static class OutputParamMessage
{
public static (SqlParameter MessCode, SqlParameter Message) CreateOutputParams()
{
var messCode = new SqlParameter("@MessCode", SqlDbType.TinyInt) { Direction = ParameterDirection.Output };
var message = new SqlParameter("@Message", SqlDbType.VarChar, 8000) { Direction = ParameterDirection.Output };
return (messCode, message);
}
}
}