mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
基类模型修改为接口
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user