IのHAVAテーブルLINQ複数の車両の列 と
マイ対応するSQLクエリ私はLINQで同じクエリを書くことができますどのように
sQuery = "Select * from Vehicle where " + variant + "='Y'";
がありますか?
VehicleDatatable.AsEnumerable().Where(q=>q.Trucks=="Y" || q.Cars=="Y" || q.Utility=="Y");
あなたはSystem.Linq.Expression
名前空間を使用してラムダ式を動的に構築することができます
(from d in VehicleDatatable.AsEnumerable() where string.compare(d["Trucks"],"Y")==0 select d)
[ダイナミックLINQの条件]の可能な複写(http://stackoverflow.com/questions/5674639/dynamic-where-condition-in-linq) –