添加特性自动依赖注入

This commit is contained in:
陈淳
2022-10-09 17:32:44 +08:00
parent cf37f7c950
commit 0672698ba7
11 changed files with 149 additions and 8 deletions

View File

@@ -3,12 +3,14 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Common.Attribute;
using Yi.Framework.Interface;
using Yi.Framework.Model.Models;
using Yi.Framework.Repository;
namespace Yi.Framework.Service
{
[AppService]
public class BaseService<T>:IBaseService<T> where T:class,new()
{
public IRepository<T> _repository { get; set; }