Update SugarParamter

This commit is contained in:
sunkaixuan 2017-06-20 13:11:22 +08:00
parent a2a4bbd349
commit 53f74d298b
2 changed files with 13 additions and 0 deletions

View File

@ -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>);

View File

@ -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)
{