- 优化 QuestDB Guid 映射;

This commit is contained in:
2881099
2023-07-05 21:34:39 +08:00
parent 4da56f4435
commit b1f37b672c
2 changed files with 8 additions and 2 deletions

View File

@ -1150,7 +1150,13 @@ namespace FreeSql.Internal
foreach (var col in tbmid.Primarys)
{
col.Attribute.IsNullable = false;
col.Attribute.DbType = col.Attribute.DbType.Replace("NOT NULL", "").Replace(" NULL", "").Trim() + " NOT NULL"; //sqlite 主键也可以插入 null
col.Attribute.DbType = col.Attribute.DbType.Replace("NOT NULL", "").Replace(" NULL", "").Trim();
switch (common._orm.Ado.DataType)
{
case DataType.Sqlite:
col.Attribute.DbType += " NOT NULL"; //sqlite 主键也可以插入 null
break;
}
}
}
}