I am using ASP.NET Zero to insert large amounts of data from Excel into the database and it is slow. So I thought of using Entity Framework Extensions for BulkInsert but don't really know how to use it.. I get an error
The type arguments for the method DbContextBulkExtensions.BulkInsert can not be inferred from usage
This is my code.. Any help please?
private readonly IRepository<InventoryBalance> _repository;
public void Create(InventoryBalance input)
{
_repository.GetDbContext().BulkInsert(input);
}