Linq to sql 对数据集的Linq查询

Linq to sql 对数据集的Linq查询,linq-to-sql,Linq To Sql,我有一个linq查询。我想把这个查询结果带到一个数据集。我该怎么做 var variable = from t in db.Islems where t.Tarih >= dateTimePicker1.Value && t.Tarih < dateTimePicker2.Value select t; DataSet ds = new DataSet(); va

我有一个linq查询。我想把这个查询结果带到一个数据集。我该怎么做

var variable = from t in db.Islems
               where t.Tarih >= dateTimePicker1.Value
                     && t.Tarih < dateTimePicker2.Value
               select t;

DataSet ds = new DataSet();
var变量=从t开始,单位为db.Islems
其中t.Tarih>=dateTimePicker1.Value
&&t.Tarih

我想将查询结果加载到数据集,然后在Crystal Reports中使用它。

检查我发布的扩展方法,它使用反射和泛型将任何IEnumerable集合转换为DataTable。

Crystal Reports不支持泛型集合?