@@ -335,18 +335,6 @@ module EntityFramework {
335
335
result .getName ( ) .matches ( "SaveChanges%" )
336
336
}
337
337
338
- /**
339
- * Gets the string representation for synthetic identifiers for SaveChanges methods
340
- * on this.
341
- */
342
- private string getSyntheticNames ( ) {
343
- exists ( string qualifier , string type , string name |
344
- this .getASaveChanges ( ) .hasQualifiedName ( qualifier , type , name )
345
- |
346
- result = getQualifiedName ( qualifier , type , name )
347
- )
348
- }
349
-
350
338
/** Holds if component stack `head :: tail` is required for the input specification. */
351
339
predicate requiresComponentStackIn (
352
340
Content head , Type headType , SummaryComponentStack tail , int dist
@@ -388,8 +376,7 @@ module EntityFramework {
388
376
this = p .getDbContextClass ( ) and
389
377
input ( this , synthetic , mapped ) and
390
378
output ( this , output , mapped , p ) and
391
- result =
392
- getFullSyntheticName ( this .getSyntheticNames ( ) , p .getSyntheticName ( ) , synthetic , output )
379
+ result = getFullSyntheticName ( p .getSyntheticName ( ) , synthetic , output )
393
380
)
394
381
}
395
382
}
@@ -446,13 +433,12 @@ module EntityFramework {
446
433
)
447
434
}
448
435
449
- bindingset [ save , prop, stack1, stack2]
436
+ bindingset [ prop, stack1, stack2]
450
437
private string getFullSyntheticName (
451
- string save , string prop , SummaryComponentStack stack1 , SummaryComponentStack stack2
438
+ string prop , SummaryComponentStack stack1 , SummaryComponentStack stack2
452
439
) {
453
440
result =
454
- save + "#" //
455
- + prop + "#" //
441
+ prop + "#" //
456
442
+ SummaryComponentStack:: getComponentStack ( stack1 ) + "#" //
457
443
+ SummaryComponentStack:: getComponentStack ( stack2 )
458
444
}
@@ -478,21 +464,12 @@ module EntityFramework {
478
464
479
465
DbContextSaveChanges ( ) { this = c .getASaveChanges ( ) }
480
466
481
- private string getSyntheticName ( ) {
482
- exists ( string qualifier , string type , string name |
483
- this .( Method ) .hasQualifiedName ( qualifier , type , name )
484
- |
485
- result = getQualifiedName ( qualifier , type , name )
486
- )
487
- }
488
-
489
467
pragma [ nomagic]
490
468
string getOutputSynthetic ( SummaryComponentStack input ) {
491
469
exists ( SummaryComponentStack synthetic , Property mapped , DbContextClassSetProperty dbSet |
492
470
input ( c , input , mapped ) and
493
471
output ( c , synthetic , mapped , dbSet ) and
494
- result =
495
- getFullSyntheticName ( this .getSyntheticName ( ) , dbSet .getSyntheticName ( ) , input , synthetic )
472
+ result = getFullSyntheticName ( dbSet .getSyntheticName ( ) , input , synthetic )
496
473
)
497
474
}
498
475
0 commit comments