using System; using System.Collections; using System.Linq; namespace DevExpress.DevAV.Common.Utils { /// /// Provides the extension method for implementations of the IQueryable interface. /// public static class DbExtensions { /// /// Forces entities to be loaded locally from the IQueryable instance. /// /// An instance of the IQueryable interface from which to load entities. public static void Load(this IQueryable source) { IEnumerator enumerator = source.GetEnumerator(); while(enumerator.MoveNext()) { } } } }