Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.04 KB

entityservice-namespace.md

File metadata and controls

21 lines (15 loc) · 1.04 KB

EntityService Namespace

{% hint style="warning" %} In order to use this namespace you will need the cborm module installed in your application: install cborm {% endhint %}

Gives you the ability to easily inject base ORM services or binded virtual entity services for you:

DSL Description
entityService Inject a BaseORMService object for usage as a generic service layer
entityService:{entity} Inject a VirtualEntityService object for usage as a service layer based off the name of the entity passed in.
// Generic ORM service layer
property name="genericService" inject="entityService";
// Virtual service layer based on the User entity
property name="userService" inject="entityService:User";