Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 将数据集导入RDLC文件向导已停止工作_C#_Import_Dataset_Report_Rdlc - Fatal编程技术网

C# 将数据集导入RDLC文件向导已停止工作

C# 将数据集导入RDLC文件向导已停止工作,c#,import,dataset,report,rdlc,C#,Import,Dataset,Report,Rdlc,几周前,我创建了一些(RDLC)报告。为了创建一个数据集,我定义了一个虚拟类,并使用该过程导入,它运行良好 public class DataSetCartaIntestata { public string Desc public string Immage; public string Name; } 我这样做是为了获得匿名类型查询的结果: public IEnumerable list; list= b.Results.Where(x=>x.Name="Ja

几周前,我创建了一些(RDLC)报告。为了创建一个数据集,我定义了一个虚拟类,并使用该过程导入,它运行良好

public class DataSetCartaIntestata
{
    public string Desc
    public string Immage;
    public string Name;
}
我这样做是为了获得匿名类型查询的结果:

public IEnumerable list;
list= b.Results.Where(x=>x.Name="Jack").Select(x=>new{x.Name,x.Image,x.Desc}).ToList();
现在看来,如果我要再次这样做,这个过程将不允许我添加数据集。 当我选择new Dataset时,它会创建数据源,但不会创建数据集

有什么我弄错了吗?

我发现answare是导入过程,只导入属性,而不是类的简单字段,即使它们是公共字段。所以我必须给他们下定义

无论如何,如果我在RDLC中手动定义数据集,我可以直接访问字段

更容易犯错误更改xml plus VS2012在RDLC上有点敏感,并且经常崩溃