I'm using VS 2008 and .NET 3.5 framework.
I've already played a bit with XmlSerializer
. I've added attributes in the business object classes like
[System.Xml.Serialization.XmlRootAttribute()]
and so forth, and it works well. It's a relatively thin mapping interface from the object structure to the XML structure.
Is there a similar procedure for doing this with objects to MySQL tables and records -- that is, something short of defining two separate frameworks for each business object? We're already using the MySQL ADO.NET driver: http://www.mysql.com/products/connector/. I'm trying to decide now whether I want to make the jump to something like NHibernate, or try to work with the more domain-specific MySQL driver.
Thanks in advance!