Ejemplo n.º 1
0
 public IEnumerable <T> GetObjects <T>(ObjectIdentifier id, DacQueryScopes queryScope) where T : ISqlModelElement
 {
     // Map the System.Type to a set of ModelType classes that extend the type or implement the interface
     foreach (ModelTypeClass modelType in UtilityMethods.GetModelElementTypes(typeof(T)))
     {
         foreach (var element in model.GetObjects(modelType, id, queryScope))
         {
             // Adapt instance with strongly-typed wrapper.
             yield return((T)TSqlModelElement.AdaptInstance(element));
         }
     }
 }
Ejemplo n.º 2
0
 public T GetObject <T>(ObjectIdentifier id, DacQueryScopes queryScope) where T : ISqlModelElement
 {
     return(GetObjects <T>(id, queryScope).FirstOrDefault());
 }
Ejemplo n.º 3
0
 public IEnumerable <TSqlObject> GetChildren(DacQueryScopes queryScopes)
 {
     return(Element.GetChildren(queryScopes));
 }
Ejemplo n.º 4
0
 public IEnumerable <ModelRelationshipInstance> GetReferencingRelationshipInstances(ModelRelationshipClass relationshipType, DacQueryScopes queryScopes)
 {
     return(Element.GetReferencingRelationshipInstances(relationshipType, queryScopes));
 }
Ejemplo n.º 5
0
 public IEnumerable <ModelRelationshipInstance> GetReferencingRelationshipInstances(DacQueryScopes queryScopes)
 {
     return(Element.GetReferencingRelationshipInstances(queryScopes));
 }
Ejemplo n.º 6
0
 public IEnumerable <TSqlObject> GetReferencing(ModelRelationshipClass relationshipType, DacQueryScopes queryScopes)
 {
     return(Element.GetReferencing(relationshipType, queryScopes));
 }
Ejemplo n.º 7
0
 public IEnumerable <TSqlObject> GetReferencing(DacQueryScopes queryScopes)
 {
     return(Element.GetReferencing(queryScopes));
 }
Ejemplo n.º 8
0
 public TSqlObject GetParent(DacQueryScopes queryScopes)
 {
     return(Element.GetParent(queryScopes));
 }