File tree Expand file tree Collapse file tree
Orm/Xtensive.Orm/Orm/Model Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -320,14 +320,15 @@ public override void UpdateState()
320320 base . UpdateState ( ) ;
321321 CreateColumns ( ) ;
322322 valueColumns . UpdateState ( ) ;
323- foreach ( IndexInfo baseIndex in underlyingIndexes ) {
323+ foreach ( var baseIndex in underlyingIndexes ) {
324324 baseIndex . UpdateState ( ) ;
325325 }
326326 filter ? . UpdateState ( ) ;
327327 CreateTupleDescriptors ( ) ;
328328
329- if ( ! IsPrimary )
329+ if ( ! IsPrimary ) {
330330 return ;
331+ }
331332
332333 var keyColumnsCount = keyColumns . Count ;
333334 var system = new int [ keyColumnsCount + 1 ] ;
@@ -342,13 +343,11 @@ public override void UpdateState()
342343 if ( item . IsPrimaryKey || item . IsSystem ) {
343344 system [ systemIndex ++ ] = i ;
344345 }
346+ else if ( item . IsLazyLoad ) {
347+ lazy . Add ( i ) ;
348+ }
345349 else {
346- if ( item . IsLazyLoad )
347- lazy . Add ( i ) ;
348- else {
349- regular [ regularIndex ++ ] = i ;
350- //regularIndex++;
351- }
350+ regular [ regularIndex ++ ] = i ;
352351 }
353352 }
354353
You can’t perform that action at this time.
0 commit comments