mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修复 QuestDb CodeFirst AutoSubtableAttribute/ColumnAttribute判断bug
This commit is contained in:
@ -182,8 +182,10 @@ namespace FreeSql.QuestDb
|
||||
if (timeAttr != null)
|
||||
{
|
||||
var ckey = propety.Name;
|
||||
//如果存在Column.Name
|
||||
var colNameAttr = propety.GetCustomAttribute<ColumnAttribute>();
|
||||
if (!string.IsNullOrWhiteSpace(colNameAttr?.Name))
|
||||
//则以Column中的Name为主
|
||||
ckey = colNameAttr.Name;
|
||||
var colName = tb.Columns.FirstOrDefault(it => it.Key == ckey).Value;
|
||||
sbalter.Append(
|
||||
|
Reference in New Issue
Block a user