mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
Merge branch 'master' of https://github.com/dotnetcore/FreeSql
This commit is contained in:
commit
40e9c1952d
@ -181,7 +181,13 @@ namespace FreeSql.QuestDb
|
||||
var timeAttr = propety.GetCustomAttribute<AutoSubtableAttribute>();
|
||||
if (timeAttr != null)
|
||||
{
|
||||
var colName = tb.Columns.FirstOrDefault(it => it.Key == propety.Name).Value;
|
||||
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(
|
||||
$" TIMESTAMP({colName.Attribute.Name}) PARTITION BY {timeAttr.SubtableType};{Environment.NewLine}");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user