我正在尝试构建一个存储库,所以我发现这个链接解释得很好但我得到了错误
错误 1 找不到类型或命名空间名称“EntityBase”(您是否缺少 using 指令或程序集引用?)
错误 2 找不到类型或命名空间名称“IAggregateRoot”(您是否缺少 using 指令或程序集引用?)
我的代码是
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Linq.Expressions;
namespace DapperAndSQLite
{
public interface IRepository<T> where T : EntityBase, IAggregateRoot
{
void Add(T item);
void Remove(T item);
void Update(T item);
T FindByID(Guid id);
IEnumerable<T> Find(Expression<Func<T, bool>> predicate);
IEnumerable<T> FindAll();
}
}
这是屏幕截图(显示程序集或缺少某些东西)
我错过了什么吗?