src/Misc/EFTools/EntityDesignDatabaseGeneration/OutputGenerators/OutputGeneratorHelpers.cs
// <summary>
//     A name derived from a *:* association will be: FK_[Association Name]_[End Name]. Note that we are
//     getting the association name for *one* of the SSDL associations that are inferred from a CSDL *:*
//     association. The 'principalEnd' corresponds to the end of the *:* association that will become
//     the principal end in the 1:* association (where the * end is the newly-constructed entity corresponding
//     to the link table)
// </summary>
A name derived from a *:* association will be: FK_[Association Name]_[End Name]. Note that we are
getting the association name for *one* of the SSDL associations that are inferred from a CSDL *:
association. The 'principalEnd' corresponds to the end of the *:* association that will become
the principal end in the 1:* association (where the * end is the newly-constructed entity corresponding
to the link table)
A name derived from a * : * association will be : FK_ [ Association Name ] _ [ End Name ] . Note that we are getting the association name for * one * of the SSDL associations that are inferred from a CSDL * : association . The ' principalEnd ' corresponds to the end of the * : * association that will become the principal end in the 1 : * association ( where the * end is the newly - constructed entity corresponding to the link table )
internal static string GetStorageAssociationSetNameFromManyToMany(AssociationSet associationSet, AssociationEndMember principalEnd)
        {
            Debug.Assert(associationSet != null, "AssociationSet should not be null");
            Debug.Assert(principalEnd != null, "The principal end cannot be null");
            var associationSetName = String.Empty;
            if (associationSet != null
                && principalEnd != null)
            {
                associationSetName = String.Format(
                    CultureInfo.CurrentCulture, Resources.CodeViewManyToManyAssocName, associationSet.Name, principalEnd.Name);
            }
            return associationSetName;
        }
internal static string GetStorageAssociationSetNameFromManyToMany ( AssociationSet associationSet , AssociationEndMember principalEnd ) { Debug . Assert ( associationSet != null , " " ) ; Debug . Assert ( principalEnd != null , " " ) ; var associationSetName = String . Empty ; if ( associationSet != null && principalEnd != null ) { associationSetName = String . Format ( CultureInfo . CurrentCulture , Resources . CodeViewManyToManyAssocName , associationSet . Name , principalEnd . Name ) ; } return associationSetName ; }
A name derived from a *:* association will be: FK_[Association Name]_[End Name].
A name derived from a * : * association will be : FK_ [ Association Name ] _ [ End Name ] .
associationSet
AssociationSet
principalEnd
AssociationEndMember