我有一个相当大的XSD文件,我听说,有可能使用实体框架连接到如数据库的XML文件,并验证他们对XSD,但我不知道如何去这样做。
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.
所以,我要做的是生成从我的XSD文件中的实体框架模型,我想这将产生一系列的对象进行验证和人口打开一个XML文件时将使用。
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.
Linq2xsd将这样做。 HTTP://linqtoxsd.$c$cplex.com/ 一旦死了,现在住在codePLEX。
Linq2xsd will do that. http://linqtoxsd.codeplex.com/ once dead it now lives on codeplex.