diff --git a/SqlServerTest/Program.cs b/SqlServerTest/Program.cs index 86de625e8..caafd709e 100644 --- a/SqlServerTest/Program.cs +++ b/SqlServerTest/Program.cs @@ -18,26 +18,26 @@ namespace OrmTest static void Main(string[] args) { /***Unit Test***/ - //new Field(1).Init(); - //new Where(1).Init(); - //new Method(1).Init(); - //new JoinQuery(1).Init(); - //new SingleQuery(1).Init(); - //new SelectQuery(1).Init(); - //new AutoClose(1).Init(); - //new Insert(1).Init(); - //new Delete(1).Init(); - //new Update(1).Init(); - //new Mapping(1).Init(); - //new DataTest(1).Init(); - ///***Performance Test***/ - //new SqlSugarPerformance(100).Select(); + new Field(1).Init(); + new Where(1).Init(); + new Method(1).Init(); + new JoinQuery(1).Init(); + new SingleQuery(1).Init(); + new SelectQuery(1).Init(); + new AutoClose(1).Init(); + new Insert(1).Init(); + new Delete(1).Init(); + new Update(1).Init(); + new Mapping(1).Init(); + new DataTest(1).Init(); + /***Performance Test***/ + new SqlSugarPerformance(100).Select(); - ///***Demo***/ - //OrmTest.Demo.Query.Init(); - //OrmTest.Demo.Insert.Init(); - //OrmTest.Demo.Delete.Init(); - //OrmTest.Demo.Update.Init(); + /***Demo***/ + OrmTest.Demo.Query.Init(); + OrmTest.Demo.Insert.Init(); + OrmTest.Demo.Delete.Init(); + OrmTest.Demo.Update.Init(); OrmTest.Demo.DbFirst.Init(); OrmTest.Demo.JoinSql.Init(); OrmTest.Demo.Filter.Init(); diff --git a/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs b/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs index 98e7205e4..ab4c67507 100644 --- a/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs +++ b/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs @@ -253,8 +253,7 @@ namespace SqlSugar { "Equals","Equals"}, { "ToLower","ToLower"}, { "ToUpper","ToUpper"}, - { "Substring","Substring"}, - { "Trim","Trim"} + { "Substring","Substring"} }; private void CheckMethod(MethodCallExpression expression) diff --git a/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs b/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs index 4780c54c2..7f3920e8c 100644 --- a/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs +++ b/SqlSugar/Realization/SqlServer/DbBind/SqlServerDbBind.cs @@ -22,6 +22,7 @@ namespace SqlSugar new KeyValuePair("nvarchar",CSharpDataType.@string), new KeyValuePair("bigint",CSharpDataType.@long), new KeyValuePair("bit",CSharpDataType.@bool), + new KeyValuePair("time",CSharpDataType.DateTime), new KeyValuePair("datetime",CSharpDataType.DateTime), new KeyValuePair("smalldatetime",CSharpDataType.DateTime), new KeyValuePair("timestamp",CSharpDataType.DateTime),