mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
Merge branch 'master' of https://github.com/dotnetcore/FreeSql
This commit is contained in:
commit
51d2a92986
@ -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)
|
string CkNullableAdapter(string dbType, bool isPrimary)
|
||||||
{
|
{
|
||||||
return isPrimary
|
return isPrimary
|
||||||
? dbType.Replace("Nullable(", "").Replace(") NOT NULL", "")
|
? dbType.Replace("Nullable(", "").Replace(")","").Replace(" NOT NULL", "")
|
||||||
: dbType.Replace(" NOT NULL", "");
|
: dbType.Replace(" NOT NULL", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
string CkIntAdapter(string dbType)
|
string CkIntAdapter(string dbType)
|
||||||
{
|
{
|
||||||
var result = dbType;
|
var result = dbType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user