16 lines
423 B
C#
16 lines
423 B
C#
using System.Data.Common;
|
|
using MySql.Data.MySqlClient;
|
|
|
|
namespace SweetLib.Storage.MySql.Helper;
|
|
|
|
public static class MySqlDbParameterExtensions
|
|
{
|
|
public static MySqlParameter AddMySqlParameterWithValue(this DbParameterCollection parameterCollection,
|
|
string name, object value)
|
|
{
|
|
var param = new MySqlParameter(name, value);
|
|
parameterCollection.Add(param);
|
|
|
|
return param;
|
|
}
|
|
} |