src/Misc/EFTools/EntityDesignDatabaseGeneration/MetadataWorkspaceExtensions.cs
/// <summary>
///     Retrieves an enumerable collection of all ReferentialConstraints in this SSDL/StoreItemCollection
/// </summary>
/// <param name="storeItemCollection">StoreItemCollection representing the SSDL</param>
/// <returns>The list of ReferentialConstraints.</returns>
Retrieves an enumerable collection of all ReferentialConstraints in this SSDL/StoreItemCollection
Retrieves an enumerable collection of all ReferentialConstraints in this SSDL / StoreItemCollection
public static IEnumerable<ReferentialConstraint> GetAllReferentialConstraints(this StoreItemCollection storeItemCollection)
        {
            var refConstraints = new List<ReferentialConstraint>();
            foreach (AssociationType association in storeItemCollection.GetAllAssociations())
            {
                refConstraints.AddRange(association.ReferentialConstraints);
            }
            return refConstraints;
        }
public static IEnumerable < ReferentialConstraint > GetAllReferentialConstraints ( this StoreItemCollection storeItemCollection ) { var refConstraints = new List < ReferentialConstraint > ( ) ; foreach ( AssociationType association in storeItemCollection . GetAllAssociations ( ) ) { refConstraints . AddRange ( association . ReferentialConstraints ) ; } return refConstraints ; }
Retrieves an enumerable collection of all ReferentialConstraints in this SSDL/StoreItemCollection
Retrieves an enumerable collection of all ReferentialConstraints in this SSDL / StoreItemCollection
The list of ReferentialConstraints.
The list of ReferentialConstraints .
StoreItemCollection
this
storeItemCollection
StoreItemCollection representing the SSDL
StoreItemCollection representing the SSDL