I have a C# data structure which consists of classes and collections which have references to each other. Currently I am using Serialization to store the structure in XML, which works as a handy way to save/load the structure into my application.
If I want to be able to save/load the structure into a database, is there a simple way? Should I use LINQ?
Just to be 100% clear LINQ has nothing to do with storing data in a database. LINQ is a language query for c# with syntax that resembles SQL.
So in order to answer your question you could look at the Entity Framework (I’d recommend this if you are using .NET 4.0) or LINQ to SQL