コード例 #1
0
 public async Task AddAsync(LibrarySalesAreaPassPriority item)
 {
     _ = await _dbContext.AddAsync(
         _mapper.Map <Entities.Tenant.LibrarySalesAreaPassPriority>(item,
                                                                    opts => opts.UseEntityCache(_salesAreaByNameCache)),
         post => post.MapTo(item, opts => opts.UseEntityCache(_salesAreaByIdCache)), _mapper)
         .ConfigureAwait(false);
 }