mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
Merge pull request #1372 from d4ilys/master
修复ClickHouse CodeFirst创建表Bug
This commit is contained in:
commit
37638a589b
@ -491,13 +491,20 @@ where a.database in ({0}) and a.table in ({1})", tboldname ?? tbname);
|
||||
}
|
||||
}
|
||||
|
||||
string CkNullablePrimaryAdapter(string dbType, bool isPrimary)
|
||||
{
|
||||
return isPrimary
|
||||
? dbType.Replace("Nullable(", "").Replace(")", "")
|
||||
: dbType.Replace(" NOT NULL", "");
|
||||
}
|
||||
string CkNullableAdapter(string dbType, bool isPrimary)
|
||||
{
|
||||
return isPrimary
|
||||
? dbType.Replace("Nullable(", "").Replace(") NOT NULL", "")
|
||||
? dbType.Replace("Nullable(", "").Replace(")","").Replace(" NOT NULL", "")
|
||||
: dbType.Replace(" NOT NULL", "");
|
||||
}
|
||||
|
||||
|
||||
string CkIntAdapter(string dbType)
|
||||
{
|
||||
var result = dbType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user