src/Misc/EFTools/EntityDesignModel/Integrity/CreateForeignKeyProperties.cs
/// <summary>
///     This method will add an CreateForeignKeyProperties IntegrityCheck for the passed in
///     association.
/// </summary>
/// <param name="cpc"></param>
/// <param name="association">This is only valid for C-Side associations.</param>
This method will add an CreateForeignKeyProperties IntegrityCheck for the passed in
association.
This method will add an CreateForeignKeyProperties IntegrityCheck for the passed in association .
internal static void AddRule(CommandProcessorContext cpc, Association association)
        {
            Debug.Assert(association != null, "association should not be null");
            Debug.Assert(association.EntityModel.IsCSDL, "association should not be from C-side");
            Debug.Assert(
                association.AssociationEnds().Count == 2,
                "association.AssociationEnds().Count(" + association.AssociationEnds().Count + ") should be 2");
            Debug.Assert(association.AssociationSet != null, "association.AssociationSet should not be null");
            IIntegrityCheck check = new CreateForeignKeyProperties(cpc, association);
            cpc.AddIntegrityCheck(check);
        }
internal static void AddRule ( CommandProcessorContext cpc , Association association ) { Debug . Assert ( association != null , " " ) ; Debug . Assert ( association . EntityModel . IsCSDL , " " ) ; Debug . Assert ( association . AssociationEnds ( ) . Count == 2 , " " + association . AssociationEnds ( ) . Count + " " ) ; Debug . Assert ( association . AssociationSet != null , " " ) ; IIntegrityCheck check = new CreateForeignKeyProperties ( cpc , association ) ; cpc . AddIntegrityCheck ( check ) ; }
This method will add an CreateForeignKeyProperties IntegrityCheck for the passed in
association.
This method will add an CreateForeignKeyProperties IntegrityCheck for the passed in association .
cpc
CommandProcessorContext
None
association
Association
This is only valid for C-Side associations.
This is only valid for C - Side associations .