@@ -91,14 +91,10 @@ module EntityFramework {
9191 abstract class EFSummarizedCallable extends SummarizedCallable { }
9292
9393 private class DbSetAddOrUpdateRequiredSummaryComponentStack extends RequiredSummaryComponentStack {
94- private SummaryComponent head ;
95-
96- DbSetAddOrUpdateRequiredSummaryComponentStack ( ) {
97- this = SummaryComponentStack:: argument ( [ - 1 , 0 ] ) and
98- head = SummaryComponent:: element ( )
94+ override predicate required ( SummaryComponent head , SummaryComponentStack tail ) {
95+ head = SummaryComponent:: element ( ) and
96+ tail = SummaryComponentStack:: argument ( [ - 1 , 0 ] )
9997 }
100-
101- override predicate required ( SummaryComponent c ) { c = head }
10298 }
10399
104100 private class DbSetAddOrUpdate extends EFSummarizedCallable {
@@ -462,14 +458,12 @@ module EntityFramework {
462458 }
463459
464460 private class DbContextSaveChangesRequiredSummaryComponentStack extends RequiredSummaryComponentStack {
465- private Content head ;
466-
467- DbContextSaveChangesRequiredSummaryComponentStack ( ) {
468- any ( DbContextClass c ) . requiresComponentStackIn ( head , _ , this , _ )
469- or
470- any ( DbContextClass c ) . requiresComponentStackOut ( head , _ , this , _ )
461+ override predicate required ( SummaryComponent head , SummaryComponentStack tail ) {
462+ exists ( Content c | head = SummaryComponent :: content ( c ) |
463+ any ( DbContextClass cls ) . requiresComponentStackIn ( c , _ , tail , _ )
464+ or
465+ any ( DbContextClass cls ) . requiresComponentStackOut ( c , _ , tail , _ )
466+ )
471467 }
472-
473- override predicate required ( SummaryComponent c ) { c = SummaryComponent:: content ( head ) }
474468 }
475469}
0 commit comments