Skip to content
Ricardo Barbosa edited this page Jul 19, 2013 · 70 revisions

Metagen

Overview

Welcome to Metagen - a metadata generator library and entity creation client script to use with BreezeJS for no DB, no EF ORM or EF ORM with DTO scenarios (non 1:1 entity mappings).

By using Metagen, the manual entity creation process that is commonly used to add entities to the Breeze EntityManager metadatastore on the above mentioned scenarios is minimized. Metagen generates all the metadata that is needed to self-describe your POCOS´s for automatic entity generation on the client side.

NOTE: This library is in a very early beta stage and some inconsistencies might still occur. Use it having that in mind and feel free to contribute with your ideas and pull requests for feature adding or bug fixes.

Key Features

  • Simple inclusion - just add reference to the Metagen assembly on the server and the metagen.js script on the client.
  • Eazy bootstrapping - decorate your POCOS with attributes, pass the type of your datacontext or repository classes that implement the INoDBContext interface to NoDbContextProvider class and call the run method on the metagen script. Simple!
  • Property cherry picking - If you don´t want to serialize metadata from all your model´s properties, just select the ones you want by their name.
  • Wide coverage - Data Properties, Navigation Properties, Validation Properties and Unmaped Properties supported.
  • Compatibility - Doesn´t get in the way of the metadata generated by the EFContextProvider so it supports having both metadata providers.

More Information

Clone this wiki locally