Hi
I want to save properties of object array in db.So i use foreach loop.But i think it's not better way coz connection will be opened and closed again and again.
May i know the way to avoid it.
Now code is :
foreach (AA a in List)
{
//to save in db..
SaveToDb(a.pro1,a.pro2);
}
...
Go to the complete details ...