mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
b648c0116f
commit
096b7bcf18
@ -140,7 +140,7 @@ namespace SqlSugar
|
||||
public virtual string GetPropertyTypeName(string dbTypeName)
|
||||
{
|
||||
dbTypeName = dbTypeName.ToLower();
|
||||
var propertyTypes = MappingTypes.Where(it => it.Key.Equals(dbTypeName,StringComparison.CurrentCultureIgnoreCase));
|
||||
var propertyTypes = MappingTypes.Where(it => it.Key.Equals(dbTypeName, StringComparison.CurrentCultureIgnoreCase));
|
||||
if (dbTypeName == "int32")
|
||||
{
|
||||
return "int";
|
||||
@ -161,6 +161,10 @@ namespace SqlSugar
|
||||
{
|
||||
return "string";
|
||||
}
|
||||
else if (dbTypeName.IsContainsIn("boolean", "bool"))
|
||||
{
|
||||
return "bool";
|
||||
}
|
||||
else if (propertyTypes == null || propertyTypes.Count() == 0)
|
||||
{
|
||||
Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName));
|
||||
|
Loading…
Reference in New Issue
Block a user