Creating / compiling .net data class in application

Is there a structure, an Xml structure, an architecture technology that we can use to create simple data holder class code that we can deserialize to / from and do this at runtime?

We are in the early stages of developing a .Net project, and one of our goals is to make the resulting system accessible by configuration without the need for development. We need to support new data sources, typically delivered as Xml messages. We currently convert / deserialize messages into simple classes, and then use an existing language that can manipulate these classes as needed.

This works well when you have a developer to map Xml to a simple class, create a class, and then write deserialization, but it does not expand for the administrator. Our target audience of users is the top-level database administrator and / or network administrator - people who can process Xml but may not know C #.

+3
source share
2 answers

You do not need to write any classes or deserialization procedures. If you have a schema, you can use the XSD.exe tool from Visual Studio to automatically create classes and use the built-in .NET XML serialization / deserialization.

Now, how does this happen without recompiling every time ...

, :

, XML. , , XSD, DLL, .

(, ) .

, XML-.

+3

DataTable? xml DOM (XmlDocument XDocument) ? , , , - . ? , .

- IXmlSerializable, .

+1

Source: https://habr.com/ru/post/1737625/


All Articles