mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
-
This commit is contained in:
@@ -140,7 +140,7 @@ namespace SqlSugar
|
|||||||
public virtual string GetPropertyTypeName(string dbTypeName)
|
public virtual string GetPropertyTypeName(string dbTypeName)
|
||||||
{
|
{
|
||||||
dbTypeName = dbTypeName.ToLower();
|
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")
|
if (dbTypeName == "int32")
|
||||||
{
|
{
|
||||||
return "int";
|
return "int";
|
||||||
@@ -161,6 +161,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return "string";
|
return "string";
|
||||||
}
|
}
|
||||||
|
else if (dbTypeName.IsContainsIn("boolean", "bool"))
|
||||||
|
{
|
||||||
|
return "bool";
|
||||||
|
}
|
||||||
else if (propertyTypes == null || propertyTypes.Count() == 0)
|
else if (propertyTypes == null || propertyTypes.Count() == 0)
|
||||||
{
|
{
|
||||||
Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName));
|
Check.ThrowNotSupportedException(string.Format(" \"{0}\" Type NotSupported, DbBindProvider.GetPropertyTypeName error.", dbTypeName));
|
||||||
|
Reference in New Issue
Block a user