Store and retrieve list of structures
-
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<string> toppings;
}And my variable is like below :
public static List<Order> myorder = new List<Order>();
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
-
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<string> toppings;
}And my variable is like below :
public static List<Order> myorder = new List<Order>();
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