This repo is a template for a BExIS2 module to extend the functionality of the system.
The template consists of 1 project and 3 libaries
Plugin | README |
---|---|
BExIS.Modules.TEMPLATE.UI | MVC UI project |
BExIS.TEMPLATE.Entities | Entities associated with the module |
BExIS.TEMPLATE.Orm.NH | Contains the nHibernate Mapping files to connect the tables with the entities in the database |
BExIS.TEMPLATE.Services | In this Libary all managers are deposited, which provide general functionalities for the Entities. eg create, update, delete |
Precondition: Running BExIS2 Instance in visual Studio
- Download latest version
- Create a folder into BExIS2APP\Console\BExIS.Web.Shell\Areas and name it like your prefered MODULEID (only Characters) and copy the downloaded template into this folder
- ..\Console\BExIS.Web.Shell\Areas\MODULEID\BExIS.Modules.TEMPLATE.UI
- ..\Console\BExIS.Web.Shell\Areas\MODULEID\BExIS.TEMPLATE.Entities
- ..\Console\BExIS.Web.Shell\Areas\MODULEID\BExIS.TEMPLATE.Orm.NH
- ..\Console\BExIS.Web.Shell\Areas\MODULEID\BExIS.TEMPLATE.Services
- Run the ModuleTemplate_Renaming.ps1 with Power Shell to replace alle TEMPLATE with MODULEID in files and also filenames.
- Open the BExIS2 visual studio solution
- Create a ModuleId folder under the modules folder in the Solution
- Add the ui project and the libaries to that folder
- rebuild the BExIS.MODULEID.Orm.NH project and check wether the mapping files are exitsing in the workspace folder
- ..\Workspace\Modules\MODULEID\Db\...
- Rebuild the web shell
- Add Module in the catalog Workspace\Modules\Modules.Catalog.xml
<?xml version="1.0" encoding="utf-8"?>
<Modules>
...
<Module id="vim" status="active" order="8" />
<Module id="MODULEID" status="pending" order="1" path="BExIS.Modules.MODULEID.UI"/>
</Modules>
- Run application
- After the application is loaded, the status of the module in the module.catalog.xml is set from pending to inactive. change this to active and the module is ready.