I am working on a C# project and I have a List of type DbAndTables
e.g.
List<DBAndTableNames> myList = new List<DBAndTableNames>();
I need to store the contents of this list in a MySQL Database but I can't find anything on Google on how to do this oddly. I think I have a slight recollection that I need to convert it to a byte array and then somehow this can be written to the database.
Thanks for any help you can provide.
Update I forgot to mention that this is a multi dimensional list array below is the class definition that the list uses. I've looked at the XMLSerialization but from what I've seen this doesn't support mutli dimensional lists.
public class DatabaseAndTableNames
{
public string database;
public List<string> tables = new List<string>();
}