المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Store and retrieve list of structures



C# Programming
04-06-2010, 09:12 AM
Hi there

I have a variable that its type is list of structure.
My structure is like below :
public struct Order
{
public string name;
public int amount;
public double price;
public List toppings;
}And my variable is like below :
public static List myorder = new List();
I have SQL database for my program. and I need store myorder variable to database.
If you know appropriate solution for it, please tell me.
Best Regards,
Reza Shojaee