基类模型修改为接口

This commit is contained in:
chenchun
2022-04-24 16:44:16 +08:00
parent 1ecd01204b
commit 6aa970c375
14 changed files with 71 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ using Yi.Framework.Repository;
namespace Yi.Framework.Service
{
public class BaseService<T>:IBaseService<T> where T:BaseModelEntity,new()
public class BaseService<T>:IBaseService<T> where T:class, IBaseModelEntity,new()
{
public IRepository<T> _repository { get; set; }
public BaseService(IRepository<T> iRepository)