From d8591bf9697228963596bae48412aead10718d1f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 3 Jul 2017 00:12:48 +0800 Subject: [PATCH] MySql DateTime Bug --- Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs index 353db9dd0..630c8321e 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs @@ -49,7 +49,7 @@ namespace SqlSugar } else if (type == PubConst.DateType) { - this.DbType = System.Data.DbType.Date; + this.DbType = System.Data.DbType.DateTime; } else if (type == PubConst.DobType) {