Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/332.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# 仿冒品通用存储库<;对象>;不起作用_C#_Asp.net Mvc 4_Microsoft Fakes - Fatal编程技术网

C# 仿冒品通用存储库<;对象>;不起作用

C# 仿冒品通用存储库<;对象>;不起作用,c#,asp.net-mvc-4,microsoft-fakes,C#,Asp.net Mvc 4,Microsoft Fakes,它会调用实际的数据库调用并出错 这个电话没有切中要害 this.GetEntityQuery(filter, orderBy, includeProperties, startPage, pageSize); 当我使用特定类“Customer”而不是像 return customerList.AsQueryable(); `Fakes.shimdaservicepositionary` 它工作得很好。但我需要一个通用的假方法请帮助泛型类的每个实例都是单独的.NET类型。Fakes API要

它会调用实际的数据库调用并出错

这个电话没有切中要害

this.GetEntityQuery(filter, orderBy, includeProperties, startPage, pageSize);
当我使用特定类“Customer”而不是像

return customerList.AsQueryable();
`Fakes.shimdaservicepositionary`

它工作得很好。但我需要一个通用的假方法
请帮助

泛型类的每个实例都是单独的.NET类型。Fakes API要求您单独填充每个实例,但此时不提供单个API来填充多个类型

return customerList.AsQueryable();
`Fakes.ShimDataServiceRepository<Customer>`