How quickly to write List<Object> to database?
<p>Please say me how to make next code more fast (I mean method WriteToBase).</p>

<pre><code>class MyClass
{
public int a;
public int b;
public int c;
}
void main()
{
List&lt;MyClass&gt; mc=new List&lt;MyClass&gt;();
mc.Add(new MyClass()); //example
mc.Add(new MyClass());

WriteToBase(mc);
}
void WriteToBase(List&lt;MyClass&gt; mc)
{
//Create Connection

string sqlIns = "INSERT INTO table (name, information, other) VALUES (@name,           @information, @other)";

SqlCommand cmdIns = new SqlCommand(sqlIns, Connection);
for(int i=0;i&lt;mc.Count;i++)
{
    cmdIns.Parameters.Add("@name", mc[i].a);
    cmdIns.Parameters.Add("@information", mc[i].b);
    cmdIns.Parameters.Add("@other", mc[i].c);
    cmdIns.ExecuteNonQuery();
}
}
}
</code></pre>

<p>Any ideas?</p>
