From 990fabe66dfca66c2183eaca5c9de5b955561b44 Mon Sep 17 00:00:00 2001 From: skx <610262374@qq.com> Date: Mon, 11 May 2020 17:04:01 +0800 Subject: [PATCH] ORACLE performance optimizing --- Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs index ecec0cd9f..75a6a2e57 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs @@ -150,6 +150,11 @@ namespace SqlSugar sqlParameter.Value = (bool)parameter.Value ? 1 : 0; } } + else if (parameter.DbType == System.Data.DbType.DateTime) + { + sqlParameter.Value = parameter.Value; + sqlParameter.DbType = System.Data.DbType.Date; + } else { if (parameter.Value != null && parameter.Value.GetType() == UtilConstants.GuidType)