Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 /// <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);
 }