User Tools

Site Tools


application_structure

This is an old revision of the document!


How to structure an application

In VO, there are applications, and every application consists of one or more modules, and every module has from zero to X entities.

X#, since it uses the C# base does not have a repository, but is based on source code files. It is a good rule to keep a class per source code file and name the file like the class. To structure your application, you can uses directories, so your application looks like a tree. Smaller source code files give you more oversight over your code, and using directories you can collapse and expand parts of your application in the Project Explorer (regardless if XIDE or VIsual Studio).

It can also be a good idea to use namespaces, and have the namespace like the name of your assembly - so knowing the namespace of a class, you know also in which assembly it is defined. (this is not true for the some assemblies in the .NET framework - some of them contain more than one namespace, and some namespaces are distributed over different assemblies).

As described in the topic about the Assemblies it is convenient to split your applications in different assemblies, that can also be used in different projects.

application_structure.1516738122.txt.gz · Last modified: 2018/01/23 20:08 by wolfgangriedmann