NewGaoKaoApi/New_College.Repository/BASE/T_EnrollmentBatchRepository.cs

26 lines
752 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_EnrollmentBatchRepository
/// </summary>
public class T_EnrollmentBatchRepository : BaseRepository<T_EnrollmentBatch>, IT_EnrollmentBatchRepository
{
public T_EnrollmentBatchRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
{
}
public async Task<int> BatchAdd(List<T_EnrollmentBatch> t_EnrollmentBatches)
{
return await this.Db.Fastest<T_EnrollmentBatch>().BulkCopyAsync(t_EnrollmentBatches);
}
}
}