- 优化 QuestDB 类型映射,表达式函数解析,新增 QuestFunc 函数解析;

This commit is contained in:
2881099
2023-06-28 16:09:19 +08:00
parent 40a7eb4854
commit ac9c986914
8 changed files with 488 additions and 483 deletions

View File

@ -526,8 +526,12 @@ namespace FreeSql.Internal
{
col.Attribute.IsNullable = false;
col.Attribute.DbType = col.Attribute.DbType.Replace("NOT NULL", "").Replace(" NULL", "").Trim();
if (common._orm.Ado.DataType == DataType.Sqlite)
col.Attribute.DbType += " NOT NULL"; //sqlite 主键也可以插入 null
switch(common._orm.Ado.DataType)
{
case DataType.Sqlite:
col.Attribute.DbType += " NOT NULL"; //sqlite 主键也可以插入 null
break;
}
}
foreach (var col in trytb.Columns.Values)
{