Exemple #1
0
 IEnumerable <T> IEntitySet <T> .Select(int page, int count)
 {
     using (var manager = new DotEntityQueryManager(_cache))
     {
         return(manager.DoSelect(_whereList, _orderBy, page, count));
     }
 }
Exemple #2
0
 /// <summary>
 /// Queries the database for the requested entities
 /// </summary>
 /// <returns>An enumeration of <typeparamref name="T"/></returns>
 public static IEnumerable <T> Select()
 {
     using (var manager = new DotEntityQueryManager())
     {
         return(manager.DoSelect <T>());
     }
 }