mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 05:37:58 +08:00
Update .NET
This commit is contained in:
parent
4d71e45906
commit
2b98357cf1
@ -48,7 +48,7 @@ namespace SqlSugar
|
|||||||
this.ParameterName = name;
|
this.ParameterName = name;
|
||||||
this.DbType = type;
|
this.DbType = type;
|
||||||
}
|
}
|
||||||
public SugarParameter(string name, DataTable value,string SqlServerTypeName)
|
public SugarParameter(string name, DataTable value, string SqlServerTypeName)
|
||||||
{
|
{
|
||||||
this.Value = value;
|
this.Value = value;
|
||||||
this.ParameterName = name;
|
this.ParameterName = name;
|
||||||
@ -129,6 +129,10 @@ namespace SqlSugar
|
|||||||
if (this.Value != null)
|
if (this.Value != null)
|
||||||
this.Value = this.Value.ToString();
|
this.Value = this.Value.ToString();
|
||||||
}
|
}
|
||||||
|
else if (type.IsEnum())
|
||||||
|
{
|
||||||
|
this.DbType = System.Data.DbType.Int64;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public SugarParameter(string name, object value, bool isOutput)
|
public SugarParameter(string name, object value, bool isOutput)
|
||||||
|
Loading…
Reference in New Issue
Block a user