.entity 中部门和机构都有,但是在 .IDAL 中,机构没有问题,但是部门一直显示 .entity中不存在类型或命名空间“部门”,两个代码都是相同的。我是新手,求帮忙解答!谢谢!
IDAL中部门代码:
using OA.entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OA.IDAL
{
public interface IDAL部门
{
int Insert(entity.部门 obj);
int Update(entity.部门 obj);
int Delete(entity.部门 obj);
List LoadAll();
entity.部门 LoadById(Guid id);
entity.机构 FindParent(entity.部门 child);
}
}
部门这个类在哪里定义的,贴出相关代码。
肯定还是缺少using命名空间,或者你的类名不叫部门,或者你的部门类型定义在另一个程序集中但是没有public修饰,或者这个类型是一个内部类。
两个都在.entity下,都用public修饰。。。。。