Browse Source

4.5.9.7

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
359ef8ba92
  1. 4
      Src/Asp.Net/SqlSugar/Properties/AssemblyInfo.cs
  2. 6
      Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs

4
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 // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.5.9.6")] [assembly: AssemblyVersion("4.5.9.7")]
[assembly: AssemblyFileVersion("4.5.9.6")] [assembly: AssemblyFileVersion("4.5.9.7")]

6
Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs

@ -9,7 +9,7 @@ namespace SqlSugar
public override string GetPropertyTypeName(string dbTypeName) public override string GetPropertyTypeName(string dbTypeName)
{ {
dbTypeName = dbTypeName.ToLower(); 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") if (dbTypeName == "int32")
{ {
return "int"; return "int";
@ -30,6 +30,10 @@ namespace SqlSugar
{ {
return "string"; return "string";
} }
if (dbTypeName == "byte[]")
{
return "byte[]";
}
else if (propertyTypes == null || propertyTypes.Count() == 0) else if (propertyTypes == null || propertyTypes.Count() == 0)
{ {
Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName)); Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName));

Loading…
Cancel
Save