I need to insert a large number of lines (exactly 221) when I start my WP application. Actually I'm using arrays and loop% re% loop, so I'm losing performance when I start the app.
I searched a little about for
, did not find much, but is there any way to make this RunInTransactionAsync
faster?
for (var i = 0; i < 221; i++)
{
var hino = new hinos() { numHino = array.numeroHinos[i], favHino = array.favHinos, nomeHino = array.nomeHinos[i], catHino = array.categoriaHinos[i], letraHino = array.letraHinos[i] };
await con.InsertAsync(hino);
}