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. 8
      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
// 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")]

8
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<string, CSharpDataType>("clob",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("long",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("nclob",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("rowid",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("rowid",CSharpDataType.@string),
new KeyValuePair<string, CSharpDataType>("date",CSharpDataType.DateTime),
new KeyValuePair<string, CSharpDataType>("timestamp",CSharpDataType.DateTime),

Loading…
Cancel
Save