Hi,
One question: Why when I use following code
for (int i = 0; i < 10000; i++)
{
Entity e = new Entity();
e.DisplayValue = i.ToString();
ctx.Entities.InsertOnSubmit(e);
}
ctx.SubmitChanges();
it finishes after about 8 seconds
but when I use this code
for (int i = 0; i < 10000; i++)
{
Entity e = new Entity();
e.DisplayValue = i.ToString();
ctx.Entities.InsertOnSubmit(e);
ctx.SubmitChanges();
}
it finishes after about 50 seconds
How can I do faser second example, because it is more situable for me?