예제 #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));
         }
     }
 }
예제 #2
0
 public T GetObject <T>(ObjectIdentifier id, DacQueryScopes queryScope) where T : ISqlModelElement
 {
     return(GetObjects <T>(id, queryScope).FirstOrDefault());
 }
예제 #3
0
 public IEnumerable <TSqlObject> GetChildren(DacQueryScopes queryScopes)
 {
     return(Element.GetChildren(queryScopes));
 }
예제 #4
0
 public IEnumerable <ModelRelationshipInstance> GetReferencingRelationshipInstances(ModelRelationshipClass relationshipType, DacQueryScopes queryScopes)
 {
     return(Element.GetReferencingRelationshipInstances(relationshipType, queryScopes));
 }
예제 #5
0
 public IEnumerable <ModelRelationshipInstance> GetReferencingRelationshipInstances(DacQueryScopes queryScopes)
 {
     return(Element.GetReferencingRelationshipInstances(queryScopes));
 }
예제 #6
0
 public IEnumerable <TSqlObject> GetReferencing(ModelRelationshipClass relationshipType, DacQueryScopes queryScopes)
 {
     return(Element.GetReferencing(relationshipType, queryScopes));
 }
예제 #7
0
 public IEnumerable <TSqlObject> GetReferencing(DacQueryScopes queryScopes)
 {
     return(Element.GetReferencing(queryScopes));
 }
예제 #8
0
 public TSqlObject GetParent(DacQueryScopes queryScopes)
 {
     return(Element.GetParent(queryScopes));
 }