6. Serialization

Introduction

This chapter looks at how the models and diagrams created using a DSL are saved to files so that they can be persisted and shared using a filing system or source control system. When a DSL is defined using the DSL Tools, a domain-specific serializer is automatically generated in the Dsl project that will save and load models in a domain-specific XML format. If the user wishes to modify this format, several customization options are available to do so, and these are explained in this chapter.

One of the goals of the DSL Tools is to enable the DSL user to understand these files directly and edit them by hand. For example, it’s possible to create a DSL with just a domain model and no diagram, hand-edit files corresponding ...

Get Domain-Specific Development with Visual Studio DSL Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.