in DacFxStronglyTypedModel/TSqlTypedModel.cs [74:85]
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);
}
}
}