|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
XSD.exe - generated classesI was wondering how people tend to use the classes that are generated by the
xsd.exe tool. They're great if you need to quickly serialize/deserialize a state....but I was wondering if people were actually using them within their applications' business logic, or if folks are using them as an intermidiary in a Data access scenario (e.g. a Memento pattern of sorts). Well with the addition of schema importer extensions ... it becomes alot
more powerful see http://www.topxml.com/-NET-XML-System-XML/re-8015_Ode-to-the-System-Xml-Serialization-Advanced-SchemaImporterExtension-Class.aspx although the code in the blog is kind of messed up in my broswer you should get an idea of the types of changes you can make. Personally when dealing with domain objects I prefer using the scenario you mention (mementoish pattern). Cheers, Greg Young MVP - C# http://geekswithblogs.net/gyoung Show quote "David Jessee" <DavidJes***@discussions.microsoft.com> wrote in message news:CA7BB173-A542-4DCC-A034-CFD655C52199@microsoft.com... >I was wondering how people tend to use the classes that are generated by >the > xsd.exe tool. > > They're great if you need to quickly serialize/deserialize a state....but > I > was wondering if people were actually using them within their > applications' > business logic, or if folks are using them as an intermidiary in a Data > access scenario (e.g. a Memento pattern of sorts). |
|||||||||||||||||||||||