This project has moved and is read-only. For the latest updates, please go here.

What is generated?
Luna ORM store the generated class in separated files and folders, so you can replace them with newer version without loose your custom code.

In the target folder you have choose to save, Luna ORM generate a folder named as \LunaCode-yyyyMMdd-hh.mm.ss (for example \LunaCode-20140305-14.31.20) so you can easily find last generation if you have choose a temp target directory.

Inside you can find:

png

GENERATED FILES

DataSchema.lds
This is the Luna Project File. Luna save inside them all tables, fields and other information to generate code. (In another article in this section we see the best pratices to manage this file)

DbScript.txt
In this file Luna ORM create T-SQL script to recreate Database structure in another db;

Luna.config
In this file you find all optional settings for your web.config or app.config file. IMPORTANT!!! LunaEngine work WITH or WITHOUT this settings. But with these settings you can change default work of LunaEngine. In another article in this section we see specifically any optional setting in this file (Inversion of control, ShareConnection, ecc ...)

GENERATED FOLDER

LunaEngine Folder
In this folder are contained all classes of LunaEngine. You don't need to modify or change anything here. But for kwowledge this is what is inside:

ClassBase - LunaBaseClass.vb, the real LunaEngine
ClassDAO - _NamedClass.vb, here LunaORM generate two separted file for any Table you have selected. One file contain the Entity class and the related Interface. The other file contain the Manager Class with method of Read, Save, Find ecc ecc... Eachone of this file start with underscore _ and each class contained inside start with _. You don't have to use this class directly.

LunaUserClass Folder
In this folder are contained all classes that you can change or extend with custom method, property or features.

ClassBase - LunaContext.vb, here you can extend the LunaContext Object, a special static Class (in another article in this section we examinate them);
ClassDAO - NamedClass.vb, here you can find you Manager Class of each Table. You can write here CustomMethod or Function (in another article in this section we examinate them);
ClassEntity - NamedClass.vb, here you can find you Entity Class of each Table. You can write here CustomMethod or Property, Overrides Property or any other business logic you need (in another article in this section we examinate them);

In your code you have to use directly ONLY Class contained in this folders

png

Last edited Mar 12, 2014 at 12:19 PM by Lunadix, version 1