Update pgsql

This commit is contained in:
sunkaixuan 2025-06-23 07:45:46 +08:00
parent 7940dbae11
commit cc3091391f

View File

@ -20,7 +20,7 @@ namespace SqlSugar
if (csharpTypeName.ToLower().IsIn("boolean", "bool"))
csharpTypeName = "bool";
if (csharpTypeName == "DateTimeOffset")
csharpTypeName = "DateTime";
return "timestamptz";
var mappings = this.MappingTypes.Where(it => it.Value.ToString().Equals(csharpTypeName, StringComparison.CurrentCultureIgnoreCase)).ToList();
if (mappings != null && mappings.Count > 0)
return mappings.First().Key;