ADO.Net Entity Framework generate model from XSD f

2019-07-07 13:42发布

I have a rather large XSD file and I have heard that it is possible using the entity framework to connect to XML files like databases and validate them against the XSD, however I do not know how to go about doing this.

So what I'm trying to do is generate a entity framework model from my XSD file, and I imagine this will generate a series of objects which will be used when opening a XML file for validation and population.

2条回答
成全新的幸福
2楼-- · 2019-07-07 14:10

As well you can try to use latest (4.5) version of XML Schema Definition Tool

xsd.exe /d /eld "your_schema.xsd"

where /eld option enable you to use LINQ to DataSet

查看更多
Fickle 薄情
3楼-- · 2019-07-07 14:32

Linq2xsd will do that. http://linqtoxsd.codeplex.com/ once dead it now lives on codeplex.

查看更多
登录 后发表回答