コード例 #1
0
ファイル: Program.cs プロジェクト: reuzel/CqlSharp.Linq
 static void QueryManyCompiled()
 {
     using (var context = new MyContext(ConnectionString))
     {
         var allRecords = CompiledQuery(context);
         if (allRecords.Count == 0)
             throw new Exception("no results!");
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: reuzel/CqlSharp.Linq
 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!");
     }
 }