@@ -91,14 +91,10 @@ module EntityFramework {
91
91
abstract class EFSummarizedCallable extends SummarizedCallable { }
92
92
93
93
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 ] )
99
97
}
100
-
101
- override predicate required ( SummaryComponent c ) { c = head }
102
98
}
103
99
104
100
private class DbSetAddOrUpdate extends EFSummarizedCallable {
@@ -462,14 +458,12 @@ module EntityFramework {
462
458
}
463
459
464
460
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
+ )
471
467
}
472
-
473
- override predicate required ( SummaryComponent c ) { c = SummaryComponent:: content ( head ) }
474
468
}
475
469
}
0 commit comments