M# Tutorials

Learn to build .NET applications with M#. Our step-by-step tutorials will get you up-to-speed rapidly.
If you already know ASP.NET and C#, you can master M# in a week or two.

Namespaces

Namespaces in M# have the same definition as in any programming language. A developer can adds namespaces to logically separate business logic, which helps keeping the Project in M# neat and readable.

Adding a New Namespace

Important: M# uses “App” namespace for enitre “Business Model / Logic” and must not be renamed.

Note: If you want to create your own C# classes outside of the M# IDE (security helpers for example) you can specify the namespace you want.

Note: Namespaces in M# are only limited to M# UI. Namespaces added in M# do not affect “Business Logic Project” in visual studio.

 

Creating Namespaces in M#

Go to the Project Settings

Expand Namespaces node

Write the new Namespace on the new line and hit Enter

The new Namespace will appear under project management’s Model Section