Generate XSD from my model

I am writing a WCF REST service, and I am needing to generate my XSD's which provide the information for my models.

What is the easiest way of doing this?

It would be nice to have it generate the validation within the XSD too, if possible?

Answers


C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\xsd.exe

Need Your Help

How to deal with accented characters in iOS SQLite?

ios sqlite sqlite3 cultureinfo diacritics

I need to perform a SELECT queries that are insensitive to case and accents. For demo purposes, I create a table like that:

Violation of PRIMARY KEY constraint: Cannot insert duplicate key in object

c# linq asp.net-mvc-4 linq-to-xml automapper

When I want to persist a complex model, I get this error. I think I know where it comes from, but I don't know how to solve it. I'm importing a few feeds and create objects automatically, including