How To Create a Dotnet MDriven Project
No edit summary
No edit summary
Line 14: Line 14:


'''6.''' Within Visual Studio, use the [[Documentation:Code generation|Codegen]] feature to generate C# files for all the classes within the model.
'''6.''' Within Visual Studio, use the [[Documentation:Code generation|Codegen]] feature to generate C# files for all the classes within the model.
 
[[File:c-sharp-codegen-feature.png|none|thumb|720x720px]]
'''7.''' Build the solution and make sure the project builds successfully with no errors.
'''7.''' Build the solution and make sure the project builds successfully with no errors.



Revision as of 11:40, 19 August 2024

.NET projects are cross-platform, offering access to modern development practices and services across different environments.

MDriven provides flexibility by supporting .NET applications, enabling access to features like CodeDress for enhancing your application with C# code and integrating third party services unavailable in standard MDriven applications.

1. Create a .NET project targeting .Net 6 and above.

2. Install MDriven.MVC.Core from Nuget packages.

3. Get the ecomdl version (Expanded version) of the Model project by saving your MDriven Model project in the MDriven Designer as .ecomdl. File -> save as -> set Save as type to ecomdl(*.ecomdl)

4. Copy all Model files to the created .NET project.

5. Make sure your Assets_TK folder exists within the .NET project to use the CodeDress feature. If not, create it in the same folder level where the .ecomdl file is located.

6. Within Visual Studio, use the Codegen feature to generate C# files for all the classes within the model.

c-sharp-codegen-feature.png

7. Build the solution and make sure the project builds successfully with no errors.

8. Upload the project to the MDriven Server. All assemblies will be uploaded to the MDriven Server using the Assets_TK folder.

Creating .NET project

See also:

This page was edited 31 days ago on 08/20/2024. What links here