业务层无法识别函数导入或复杂类型
我正在处理一些事情,并且正在处理一个我似乎无法解决的问题(就像这是一个令人震惊的权利)。我的一门课程无法识别复杂类型或函数导入。它不断要求GetCategories,这显然在函数导入中。以下是验证它是否存在的屏幕截图:
这是唯一使用其中任何一个的代码:
public class StoreIndexViewModel
{
public IEnumerable<GetCategories> storeCategories { get; set; }
}
这是 IEnumerable 返回的错误
错误 1 类型或命名空间名称 找不到“GetCategories” (您是否缺少 using 指令或 装配参考?)
F:\Projects\GodsCreationTaxidermySVN\GodsCreationTaxidermy\ViewModels\StoreIndexViewModel.cs 11 28 GodsCreationTaxidermy
谁能告诉我为什么这个类(并且只有这个类)有这个问题?
编辑:我还注意到复杂类型出现在我的 TT 中,但没有出现函数导入
I have something that I'm working on and am running to an issues I cant seem to resolve (Like that's a shocker right). One of my classes isn't recognizing Complex Types, or Function Imports. It keeps asking for GetCategories which is clearly in the Function Imports. Here's the screen shots to verify it's there:
And this is the only piece of code that uses any of those:
public class StoreIndexViewModel
{
public IEnumerable<GetCategories> storeCategories { get; set; }
}
This is the error returned on IEnumerable
Error 1 The type or namespace name
'GetCategories' could not be found
(are you missing a using directive or
an assembly reference?)
F:\Projects\GodsCreationTaxidermySVN\GodsCreationTaxidermy\ViewModels\StoreIndexViewModel.cs 11 28 GodsCreationTaxidermy
Can anyone tell me why this class (and only this class) has this problem?
EDIT: I also noticed that the Complex Types show up in my TT's but not the Function Imports
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的复杂类型名为
GetCategories_Result
,那么您的类型也将是GetCategories_Result
,因此您必须使用:If your complex type is called
GetCagetories_Result
then your type will be alsoGetCategories_Result
so you must use: