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)); } } }
public T GetObject <T>(ObjectIdentifier id, DacQueryScopes queryScope) where T : ISqlModelElement { return(GetObjects <T>(id, queryScope).FirstOrDefault()); }
public IEnumerable <TSqlObject> GetChildren(DacQueryScopes queryScopes) { return(Element.GetChildren(queryScopes)); }
public IEnumerable <ModelRelationshipInstance> GetReferencingRelationshipInstances(ModelRelationshipClass relationshipType, DacQueryScopes queryScopes) { return(Element.GetReferencingRelationshipInstances(relationshipType, queryScopes)); }
public IEnumerable <ModelRelationshipInstance> GetReferencingRelationshipInstances(DacQueryScopes queryScopes) { return(Element.GetReferencingRelationshipInstances(queryScopes)); }
public IEnumerable <TSqlObject> GetReferencing(ModelRelationshipClass relationshipType, DacQueryScopes queryScopes) { return(Element.GetReferencing(relationshipType, queryScopes)); }
public IEnumerable <TSqlObject> GetReferencing(DacQueryScopes queryScopes) { return(Element.GetReferencing(queryScopes)); }
public TSqlObject GetParent(DacQueryScopes queryScopes) { return(Element.GetParent(queryScopes)); }