Ido
Ido

Reputation: 981

xsd in .net framework

I have xsd file. I want to generate my entity model from this schema and serialize and deserialize. What is the recomanded .net framework and C# way to do so? I know JAXB from java. Can I use entity framework? is there another framework?

Upvotes: 0

Views: 1097

Answers (2)

Serge Wautier
Serge Wautier

Reputation: 21878

Xsd.exe is your friend. It generates c# classes from your schema. It's a command-line tool bundled into VisualStudio: open a Vsiaul Studio command prompt, then xsd.exe /? for details

Alternately, Xsd2Code does the same kind of job but integrates better into VisualStudio (it's an add-in). You'll find it on codeplex.com

As far as I know, you can't use EF with a 'generic' xsd schema.

Btw, iPad is not a great tool to type rich text answers ;-)

Upvotes: 2

Chandu
Chandu

Reputation: 82903

I used Xsd2Code in my previous project and it was pretty good. Click here

Upvotes: 0

Related Questions