: -SQLデータベースに接続せずに、指定した式をSQL *に変換できるかどうかをテストできますか?たとえば
// This one will be converted to SQL no problem
Expression<Func<Foo, bool>> predicate = x => x.Name = "Foo";
// This one will throw a NotSupportedException because the QueryProvider
// doesn't support reference comparisons
Expression<Func<Foo, bool>> predicate = x => x == someOtherFoo;
// This one doesn't work because the query provider can't
// handle IsAwesome()
Expression<Func<Foo, bool>> predicate = x => x.IsAwesome();
私は、理想的にはデータベースから分離された自動テストでは、実行時前にこれをテストする方法を探しています。
私は自分のQueryProviderをインスタンス化する方法を見つけようとしているのに、MSDNを使って何度かトロールしていましたが、私のGoogle-fuは今日私にはうんざりです。
ありがとうございます!
完璧、ありがとう! –