Closed Eits-Ian closed 4 years ago
Hi @Eits-Ian, please try calling FromLocalList with specifying ValuesInjectionMethod.ViaSqlQueryBody like this:
var query = context.FromLocalList(data, ValuesInjectionMethod.ViaSqlQueryBody);
Please let me know if that helps.
Hi Anton,
That was the first thing I did making it implicit however no difference.
@Eits-Ian , hm, that is weird. Can provide more details please? What EF version, what entity and mapping was used? I will try to replicate on my side.
Closed due to inactivity
If you try to insert more than 2100 itemes in the FromLocalList it will error and you will need to batch and concat before the query. I tried the same using Thinktecture.EntityFrameworkCore.SqlServer BulkInsertValuesIntoTempTableAsync which worked with greater than the 2100 limit.