CodeDress

MDriven Framework has always used strongly typed c# code to represent the model.

MDriven Tunrkey has used a strict declarative interpretation of the model to create the runtime model that the system follows .

The new functionality dubbed CodeDress close the Gap between these 2 strategies.

With CodeDress you can write strongly typed c# code in Visual Studio and make that code be the implementation in a Turnkey site.

This is how it works

The assemblies created with MDriven Framework will be uploaded to the MDrivenServer included as Assets in the Modlr zip file.

The assets that represent this code will be expanded into the site into a directory named ModelCodeAssemblies.

When a Turnkey typesystem is to be created the ModelCodeAssemblies folder is scanned and if it contains assemblies that has classes that has identities in theur UmlElementAttributes that match what Turnkey see in the model file based typesystem - then the type typesystem is dressed with these classes so that when an object of this type is created (as a new objects or a as an object read from persistent storage) the class from the assembly is used.

This is where it can be used

CodeDress is implemented in MDrivenServer and as such you can make use of it in ServerSide ViewModels

CodeDress is used in Turnkey and as such you can make use of it in ViewModels and Actions

CodeDress is also implemented in the MDrivenDesigner prototype functionality - including Wecpof.

This page was edited 13 days ago on 05/02/2024. What links here