How can I save a list of products in entityframework?
this code doesnt work for me..
public async Task CreateRangeAsync(List models)
{
await _context.Products.AddRangeAsync( models);
await _context.SaveChangesAsync();
}

Sachin SinghRank #66 · 26.2K reputationPosted Jan 23, 2021, 5:39 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Jan 23, 2021, 3:02 AM EST
Guest User96 reputationPosted Jan 23, 2021, 5:33 AM EST