示例#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);
 }
示例#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);
 }
示例#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);
 }