Skip to content

Commit ed81e6b

Browse files
committed
Get rid of InnerGetVersionColumns()
1 parent 27877d8 commit ed81e6b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Orm/Xtensive.Orm/Orm/Model/TypeInfo.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,10 @@ private IEnumerable<FieldInfo> InnerGetVersionFields()
687687
public IReadOnlyList<ColumnInfo> GetVersionColumns()
688688
{
689689
if (versionColumns == null) {
690-
var result = InnerGetVersionColumns().ToList();
690+
var result = InnerGetVersionFields()
691+
.SelectMany(f => f.Columns)
692+
.OrderBy(c => c.Field.MappingInfo.Offset)
693+
.ToList();
691694
if (!IsLocked) {
692695
return result;
693696
}
@@ -696,11 +699,6 @@ public IReadOnlyList<ColumnInfo> GetVersionColumns()
696699
return versionColumns;
697700
}
698701

699-
private IEnumerable<ColumnInfo> InnerGetVersionColumns() =>
700-
InnerGetVersionFields()
701-
.SelectMany(f => f.Columns)
702-
.OrderBy(c => c.Field.MappingInfo.Offset);
703-
704702
/// <inheritdoc/>
705703
public override void UpdateState()
706704
{

0 commit comments

Comments
 (0)