static void QueryManyCompiled() { using (var context = new MyContext(ConnectionString)) { var allRecords = CompiledQuery(context); if (allRecords.Count == 0) throw new Exception("no results!"); } }
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!"); } }