找不到 EntityBase 和 IAggregateRoot 参考?
EntityBase and IAggregateRoot Reference not found?
我正在尝试构建一个存储库,所以我发现 this link 解释得很好,但我遇到了错误
Error 1 The type or namespace name 'EntityBase' could not be found
(are you missing a using directive or an assembly reference?)
Error 2 The type or namespace name 'IAggregateRoot' could not be found
(are you missing a using directive or an assembly reference?)
我的密码是
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();
}
}
这是屏幕截图(显示程序集或缺少某些内容)
我是不是漏掉了什么?
我正在尝试构建一个存储库,所以我发现 this link 解释得很好,但我遇到了错误
Error 1 The type or namespace name 'EntityBase' could not be found (are you missing a using directive or an assembly reference?)
Error 2 The type or namespace name 'IAggregateRoot' could not be found (are you missing a using directive or an assembly reference?)
我的密码是
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();
}
}
这是屏幕截图(显示程序集或缺少某些内容)
我是不是漏掉了什么?