mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Update SugarParamter
This commit is contained in:
parent
a2a4bbd349
commit
53f74d298b
@ -20,6 +20,7 @@ namespace SqlSugar
|
||||
internal static Type BoolType = typeof(bool);
|
||||
internal static Type ObjType = typeof(object);
|
||||
internal static Type DobType = typeof(double);
|
||||
internal static Type FloatType=typeof(float);
|
||||
internal static Type ModelType= typeof(ModelContext);
|
||||
internal static Type DicSS = typeof(KeyValuePair<string, string>);
|
||||
internal static Type DicSi = typeof(KeyValuePair<string, int>);
|
||||
|
@ -55,6 +55,18 @@ namespace SqlSugar
|
||||
{
|
||||
this.DbType = System.Data.DbType.Double;
|
||||
}
|
||||
else if (type == PubConst.DecType)
|
||||
{
|
||||
this.DbType = System.Data.DbType.Decimal;
|
||||
}
|
||||
else if (type == PubConst.ByteType)
|
||||
{
|
||||
this.DbType = System.Data.DbType.Byte;
|
||||
}
|
||||
else if (type == PubConst.FloatType)
|
||||
{
|
||||
this.DbType = System.Data.DbType.Single;
|
||||
}
|
||||
}
|
||||
public SugarParameter(string name, object value, bool isOutput)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user