Home All Groups Group Topic Archive Search About

XSD.exe - generated classes

Author
31 May 2006 8:47 PM
David Jessee
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).

Author
31 May 2006 9:20 PM
Greg Young
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).

AddThis Social Bookmark Button