in DacFxStronglyTypedModel/TSqlTypedModel.cs [61:72]
public IEnumerable<T> GetObjects<T>(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(queryScope, modelType))
{
// Adapt instance with strongly-typed wrapper.
yield return (T)TSqlModelElement.AdaptInstance(element);
}
}
}