我正在尝试编写一个突然停止识别其中一个课程的应用程序。“
我不认为这里有很多复杂的东西,所以我可能做错了什么?我的问题是我的Ticket类似乎不再能够看到我的CallStatus类。建议现在欢迎。
代码如下:
using System;
using System.Linq;
using System.Web;
using Iesi.Collections.Generic;
using NHibernate.Search.Attributes;
namespace OpenDesk.Models
{
[Indexed]
public class Ticket
{
[DocumentId]
public virtual int ID { get; set; }
[Field]
public virtual string ReferenceID { get; set; }
public virtual int CustomerID { get; set; }
public virtual DateTime Created { get; set; }
public virtual string CreatedBy { get; set; }
public virtual CallPriority Priority { get; set; }
public virtual CallCategory Category { get; set; }
public virtual CallStatus Status { get; set; }
public virtual string Description { get; set; }
public virtual CallType Type { get; set; }
public virtual Detail Detail { get; set; }
public virtual CallSource Source { get; set; }
[NHibernate.Search.Attributes.IndexedEmbedded]
public virtual ISet<CallType> Types { get; set; }
public virtual ISet<CallCategory> Categories { get; set; }
}
}
using System;
using System.Linq;
using System.Web;
using Iesi.Collections.Generic;
using NHibernate.Search.Attributes;
namespace OpenDesk.Models
{
public class CallStatus
{
public int ID { get; set; }
public string Status { get; set; }
public string Description { get; set; }
}
}
根据需要提供其他代码。
编译错误:
错误2找不到类型或命名空间名称“CallStatus”(您是否缺少using指令或程序集引用?)
C:\ Users \ Phil \ Documents \ Visual Studio 2010 \ Projects \ OpenDesk \ trunk \ Source \ OpenDesk \ Models \ Ticket.cs
答案 0 :(得分:1)
如果您在CallStatus
内移动Ticket.cs
类声明会怎样?