just like the title, who can give me some useful samples or links? I used the code as below, but it was so slowly. I don't think the "AddRange" method is an efficient "bulk operation"!!
Code:
[HttpGet]
public string Insert()
{
List<Blog> list = new List<Blog>();
for (int i = 1; i < 5000; i++)
{
list.Add(new Blog() { BlogId = i, Url = "test info " + i });
}
_context.Blogs.AddRange(list);
_context.SaveChanges();
return "ok";
}