Exemplo n.º 1
0
 static void QueryManyCompiled()
 {
     using (var context = new MyContext(ConnectionString))
     {
         var allRecords = CompiledQuery(context);
         if (allRecords.Count == 0)
             throw new Exception("no results!");
     }
 }
Exemplo n.º 2
0
 static void QueryMany()
 {
     using (var context = new MyContext(ConnectionString))
     {
         var allRecords = context.Values.WithPageSize(1000).ToList();
         if (allRecords.Count == 0)
             throw new Exception("no results!");
     }
 }