File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Orm/Xtensive.Orm/Orm/Model Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -651,14 +651,14 @@ public IReadOnlyList<AssociationInfo> GetRemovalAssociationSequence()
651651 /// Gets the version field sequence.
652652 /// </summary>
653653 /// <returns>The version field sequence.</returns>
654- public IEnumerable < FieldInfo > GetVersionFields ( )
654+ public IReadOnlyList < FieldInfo > GetVersionFields ( )
655655 {
656656 if ( versionFields == null ) {
657- var result = InnerGetVersionFields ( ) ;
657+ var result = InnerGetVersionFields ( ) . ToList ( ) ;
658658 if ( ! IsLocked ) {
659659 return result ;
660660 }
661- versionFields = result . ToList ( ) ;
661+ versionFields = result ;
662662 }
663663 return versionFields ;
664664 }
@@ -684,14 +684,14 @@ private IEnumerable<FieldInfo> InnerGetVersionFields()
684684 /// Gets the version columns.
685685 /// </summary>
686686 /// <returns>The version columns.</returns>
687- public IEnumerable < ColumnInfo > GetVersionColumns ( )
687+ public IReadOnlyList < ColumnInfo > GetVersionColumns ( )
688688 {
689689 if ( versionColumns == null ) {
690- var result = InnerGetVersionColumns ( ) ;
690+ var result = InnerGetVersionColumns ( ) . ToList ( ) ;
691691 if ( ! IsLocked ) {
692692 return result ;
693693 }
694- versionColumns = result . ToList ( ) ;
694+ versionColumns = result ;
695695 }
696696 return versionColumns ;
697697 }
You can’t perform that action at this time.
0 commit comments