Browse Source

Update Oracle CodeFirst type

pull/11/head
sunkaixuna 3 years ago
parent
commit
4c897ccdfd
  1. 2
      Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs

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

@ -18,6 +18,8 @@ namespace SqlSugar
csharpTypeName = "long";
if (csharpTypeName.ToLower().IsIn("boolean", "bool"))
csharpTypeName = "bool";
if (csharpTypeName == "Guid")
csharpTypeName = "string";
var mappings = this.MappingTypes.Where(it => it.Value.ToString().Equals(csharpTypeName, StringComparison.CurrentCultureIgnoreCase));
return mappings.HasValue() ? mappings.First().Key : "varchar";
}

Loading…
Cancel
Save