|
@ -25,7 +25,7 @@ namespace SqlSugar |
|
|
if (csharpTypeName == "DateTimeOffset") |
|
|
if (csharpTypeName == "DateTimeOffset") |
|
|
csharpTypeName = "DateTime"; |
|
|
csharpTypeName = "DateTime"; |
|
|
var mappings = this.MappingTypes.Where(it => it.Value.ToString().Equals(csharpTypeName, StringComparison.CurrentCultureIgnoreCase)); |
|
|
var mappings = this.MappingTypes.Where(it => it.Value.ToString().Equals(csharpTypeName, StringComparison.CurrentCultureIgnoreCase)); |
|
|
return mappings.HasValue() ? mappings.First().Key : "varchar"; |
|
|
return (mappings?.Any()==true) ? mappings.First().Key : "varchar"; |
|
|
} |
|
|
} |
|
|
public override List<KeyValuePair<string, CSharpDataType>> MappingTypes |
|
|
public override List<KeyValuePair<string, CSharpDataType>> MappingTypes |
|
|
{ |
|
|
{ |
|
|