30 lines
924 B
C#
30 lines
924 B
C#
using New_College.IRepository;
|
|
using New_College.IRepository.UnitOfWork;
|
|
using New_College.Model.Models;
|
|
using New_College.Repository.Base;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace New_College.Repository
|
|
{
|
|
/// <summary>
|
|
/// T_TbSNeedDataInfoRepository
|
|
/// </summary>
|
|
public class T_TbSNeedDataInfoRepository : BaseRepository<T_TbSNeedDataInfo>, IT_TbSNeedDataInfoRepository
|
|
{
|
|
public T_TbSNeedDataInfoRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
|
|
{
|
|
}
|
|
|
|
|
|
public async Task<int> BatchAdd(List<T_TbSNeedDataInfo> t_TbSNeeds)
|
|
{
|
|
return await this.Db.Fastest<T_TbSNeedDataInfo>().BulkCopyAsync(t_TbSNeeds);
|
|
}
|
|
|
|
public async Task<int> BatchUpdate(List<T_TbSNeedDataInfo> t_TbSNeeds)
|
|
{
|
|
return await this.Db.Fastest<T_TbSNeedDataInfo>().BulkUpdateAsync(t_TbSNeeds);
|
|
}
|
|
}
|
|
} |