This commit is contained in:
sunkaixuan
2017-06-16 15:19:11 +08:00
parent dfa6a660f4
commit ffb754dd70

View File

@@ -13,11 +13,19 @@ namespace SqlSugar
{
this.Value = value;
this.ParameterName = name;
if (value != null) {
SettingDataType(value.GetType());
}
}
public SugarParameter(string name, object value, Type type)
{
this.Value = value;
this.ParameterName = name;
SettingDataType(type);
}
private void SettingDataType(Type type)
{
if (type == PubConst.ByteArrayType)
{
this.DbType = System.Data.DbType.Binary;