mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-08-05 23:52:26 +08:00
- 增加 fsql.Insert(Dictionary<string, object>) 无实体类插入方法;#481
This commit is contained in:
@ -31,7 +31,7 @@ namespace FreeSql.ClickHouse
|
||||
column.DbTypeText = column.DbTypeTextFull;
|
||||
//(?<=\()(\S +)(?=\))
|
||||
}
|
||||
switch (column.DbTypeText.ToLower())
|
||||
switch (column.DbTypeText?.ToLower())
|
||||
{
|
||||
case "bit":
|
||||
case "tinyint":
|
||||
@ -86,7 +86,7 @@ namespace FreeSql.ClickHouse
|
||||
case "varchar": return DbType.String;
|
||||
default:
|
||||
{
|
||||
if (column.DbTypeText.ToLower().Contains("datetime"))
|
||||
if (column.DbTypeText?.ToLower().Contains("datetime") == true)
|
||||
return DbType.DateTime;
|
||||
return DbType.String;
|
||||
}
|
||||
|
Reference in New Issue
Block a user