Files
Yi.Admin/Yi.Framework.Net6/Yi.Framework.Service/Base/Crud/ApplicationService.cs

16 lines
481 B
C#
Raw Normal View History

2023-01-01 23:06:11 +08:00
using AutoMapper;
using AutoMapper.Internal.Mappers;
using Microsoft.Extensions.DependencyInjection;
2023-01-05 19:21:48 +08:00
using System;
using Yi.Framework.Common.Attribute;
2023-01-01 23:06:11 +08:00
using Yi.Framework.Interface.Base.Crud;
namespace Yi.Framework.Service.Base.Crud
{
public class ApplicationService : IApplicationService
{
2023-01-05 19:21:48 +08:00
[Autowired]
public IServiceProvider ServiceProvider { get; set; }
protected IMapper ObjectMapper => ServiceProvider.GetRequiredService<IMapper>();
2023-01-01 23:06:11 +08:00
}
}