From 5e8fab860dbe0bc16f62f01e7b617799ec6291c5 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 2 Sep 2017 11:54:56 +0800 Subject: [PATCH] Garbled BUG --- .../SqlSugar/ExpressionsToSql/Common/SugarParameter.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs index 816ba1072..1a75b0966 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs @@ -71,6 +71,11 @@ namespace SqlSugar { this.DbType = System.Data.DbType.Boolean; } + else if (type == UtilConstants.StringType) + { + this.DbType = System.Data.DbType.String; + } + } public SugarParameter(string name, object value, bool isOutput) {