Update .net framework project

This commit is contained in:
sunkaixuan
2022-08-12 21:11:56 +08:00
parent 6e87109b32
commit eaf1ed69b0
3 changed files with 6 additions and 1 deletions

View File

@@ -412,6 +412,7 @@ namespace SqlSugar
break;
case DbType.ClickHouse:
Check.Exception(SugarCompatible.IsFramework, "ClickHouse only support .net core");
InstanceFactory.CustomDllName = SugarCompatible.IsFramework ? "SqlSugar.ClickHouse" : "SqlSugar.ClickHouseCore";
break;
default:
throw new Exception("ConnectionConfig.DbType is null");

View File

@@ -22,7 +22,7 @@ namespace SqlSugar
public int DecimalDigits { get; set; }
public int Scale { get; set; }
public bool IsArray { get; set; }
internal bool IsJson { get; set; }
public bool IsJson { get; set; }
public bool? IsUnsigned { get; set; }
public int CreateTableFieldSort { get; set; }
internal object SqlParameterDbType { get; set; }

View File

@@ -313,6 +313,10 @@ namespace SqlSugar
{
return "SqlSugar.Access.Access" + name;
}
else if (type == "ClickHouse")
{
return "SqlSugar.ClickHouse.ClickHouse" + name;
}
else if (type == "Custom")
{
return CustomNamespace + "."+CustomDbName + name;