@@ -387,7 +387,7 @@ public async Task InsertEntities_WithComplexType_UpdateAll(InsertStrategy strate
387387 }
388388
389389 // Act - Second insert with update on conflict
390- // Using 'inserted' parameter to update all columns (both behave the same for ParameterExpression case)
390+ // The ParameterExpression case in GetUpdates generates UPDATE statements for all columns
391391 var updatedEntities = await _context . InsertWithStrategyAsync ( strategy , insertedEntities , o => o . CopyGeneratedColumns = true ,
392392 onConflict : new OnConflictOptions < TestEntityWithComplexType >
393393 {
@@ -412,7 +412,7 @@ public async Task InsertEntities_WithComplexType_UpdateWithWhere(InsertStrategy
412412 // Oracle MERGE does not support returning entities
413413 Skip . If ( _context . IsProvider ( ProviderType . Oracle ) ) ;
414414
415- // Arrange
415+ // Arrange - initial Code values are 10 and 20
416416 var entities = new List < TestEntityWithComplexType >
417417 {
418418 new TestEntityWithComplexType
@@ -430,7 +430,7 @@ public async Task InsertEntities_WithComplexType_UpdateWithWhere(InsertStrategy
430430 // Act - First insert (without CopyGeneratedColumns - returns generated IDs via RETURNING)
431431 var insertedEntities = await _context . InsertWithStrategyAsync ( strategy , entities ) ;
432432
433- // Update the complex property name
433+ // Update the complex property - new Code values will be original + 100 (110 and 120)
434434 foreach ( var entity in insertedEntities )
435435 {
436436 entity . OwnedComplexType . Name = $ "Changed_{ entity . OwnedComplexType . Name } ";
@@ -446,7 +446,8 @@ public async Task InsertEntities_WithComplexType_UpdateWithWhere(InsertStrategy
446446 Where = ( inserted , excluded ) => excluded . OwnedComplexType . Code > inserted . OwnedComplexType . Code
447447 } ) ;
448448
449- // Assert - entities should be updated because excluded.Code (110, 120) > inserted.Code (10, 20)
449+ // Assert - entities should be updated because the new Code values (110, 120)
450+ // are greater than the existing values in the database (10, 20)
450451 Assert . Equal ( 2 , updatedEntities . Count ) ;
451452 Assert . All ( updatedEntities , e =>
452453 {
0 commit comments