mirror of
https://github.com/DevExpress/netcore-winforms-demos.git
synced 2025-12-25 10:57:30 +00:00
23 lines
717 B
C#
23 lines
717 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Linq;
|
|
|
|
namespace DevExpress.DevAV.Common.Utils {
|
|
/// <summary>
|
|
/// Provides the extension method for implementations of the IQueryable interface.
|
|
/// </summary>
|
|
public static class DbExtensions {
|
|
|
|
/// <summary>
|
|
/// Forces entities to be loaded locally from the IQueryable instance.
|
|
/// </summary>
|
|
/// <param name="source">An instance of the IQueryable interface from which to load entities.</param>
|
|
public static void Load(this IQueryable source) {
|
|
IEnumerator enumerator = source.GetEnumerator();
|
|
while(enumerator.MoveNext()) {
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|