采购订单添加物料功能
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
using AutoMapper;
|
||||
using AutoMapper.Internal.Mappers;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using Yi.Framework.Common.Attribute;
|
||||
using Yi.Framework.Interface.Base.Crud;
|
||||
|
||||
namespace Yi.Framework.Service.Base.Crud
|
||||
{
|
||||
public class ApplicationService : IApplicationService
|
||||
{
|
||||
public ApplicationService(IMapper mapper)
|
||||
{
|
||||
ObjectMapper = mapper;
|
||||
}
|
||||
protected IMapper ObjectMapper { get; set; }
|
||||
[Autowired]
|
||||
public IServiceProvider ServiceProvider { get; set; }
|
||||
protected IMapper ObjectMapper => ServiceProvider.GetRequiredService<IMapper>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user