Quote:
quote:Originally posted by AnjuSujith
Yes,I want to saave the records in a single transsaction with out using collection
|
Well now I am really confused. A List<T>
is a collection.
And since you have said:
Quote:
quote:Originally posted by AnjuSujith
Is it possible to store data in the list of class object and save them at a time
|
You could do:
Code:
foreach(<type> t in <List>)
{
//construct SQL
}
and you can employ the SqlTransaction class to create a transaction in code as shown here:
http://msdn2.microsoft.com/en-us/lib...ansaction.aspx
This uses Dynamic SQL which i am not a fan of but i think this will solve your problem.
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========