/// <summary> /// Gets the Association nodes from an EDMX Document. /// </summary> /// <param name="edmxDocument">EDMX Document source.</param> /// <returns></returns> public static IEnumerable<XElement> GetAssociationNodes(EdmxDocument edmxDocument) { return edmxDocument.DescendantsCSDL(EdmxNodes.Association); }
/// <summary> /// Gets the Complex Type nodes from an EDMX Document. /// </summary> /// <param name="edmxDocument">EDMX Document source.</param> /// <returns></returns> public static IEnumerable<XElement> GetComplexTypeNodes(EdmxDocument edmxDocument) { return edmxDocument.DescendantsCSDL(EdmxNodes.ComplexType); }
/// <summary> /// Gets the Navigation Property nodes from an EDMX Document. /// </summary> /// <param name="edmxDocument">EDMX Document source.</param> /// <returns></returns> public static IEnumerable<XElement> GetNavigationPropertyNodes(EdmxDocument edmxDocument) { return edmxDocument.DescendantsCSDL(EdmxNodes.NavigationProperty); }