From 359ef8ba9243eada10ac2349d674ae54a6d7fd53 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 30 Oct 2017 12:26:19 +0800 Subject: [PATCH] 4.5.9.7 --- Src/Asp.Net/SqlSugar/Properties/AssemblyInfo.cs | 4 ++-- .../SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Properties/AssemblyInfo.cs b/Src/Asp.Net/SqlSugar/Properties/AssemblyInfo.cs index 82dfcb9b1..1cd49dcee 100644 --- a/Src/Asp.Net/SqlSugar/Properties/AssemblyInfo.cs +++ b/Src/Asp.Net/SqlSugar/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.5.9.6")] -[assembly: AssemblyFileVersion("4.5.9.6")] +[assembly: AssemblyVersion("4.5.9.7")] +[assembly: AssemblyFileVersion("4.5.9.7")] diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs index d6d827913..78010f067 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs @@ -9,7 +9,7 @@ namespace SqlSugar public override string GetPropertyTypeName(string dbTypeName) { dbTypeName = dbTypeName.ToLower(); - var propertyTypes = MappingTypes.Where(it => it.Value.ToString().ToLower() == dbTypeName||it.Key.ToLower()== dbTypeName); + var propertyTypes = MappingTypes.Where(it => it.Value.ToString().ToLower() == dbTypeName || it.Key.ToLower() == dbTypeName); if (dbTypeName == "int32") { return "int"; @@ -30,6 +30,10 @@ namespace SqlSugar { return "string"; } + if (dbTypeName == "byte[]") + { + return "byte[]"; + } else if (propertyTypes == null || propertyTypes.Count() == 0) { Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName)); @@ -75,7 +79,7 @@ namespace SqlSugar new KeyValuePair("clob",CSharpDataType.@string), new KeyValuePair("long",CSharpDataType.@string), new KeyValuePair("nclob",CSharpDataType.@string), - new KeyValuePair("rowid",CSharpDataType.@string), + new KeyValuePair("rowid",CSharpDataType.@string), new KeyValuePair("date",CSharpDataType.DateTime), new KeyValuePair("timestamp",CSharpDataType.DateTime),