Home > Developing Using CodeFluent Entities > Viewing the Inferred Model (Video)

Viewing the Inferred Model (Video)

The standard application development life-cycle using CodeFluent Entities is as follows:

  • Modeling (a.k.a. Design),
  • Inference,
  • Production (a.k.a. Code Generation),
  • Extend or develop if needed,
  • Compile,
  • Run

Those different stages can be repeated as much as needed until your application is complete.

Obviously, only the first three stages (from Modeling to Production) are in fact specific to CodeFluent Entities. On the contrary, the last three ones (from Extend to Run) are in fact standard .NET development stages and CodeFluent Entities doesn’t induce anything specific at those stages. In fact, those last three stages are a sub-cycle which can be repeated as much as needed inside the global application development life-cycle. This is so because you don’t have to modify the model and generate over again unless you have a structural change such as adding or modifying an entity, a rule, a property, a method, etc.


The Inference Stage

A CodeFluent Entities model is a bunch of XML files which are parsed and from them a meta-model will be inferred: XML nodes you defined (e.g. <Product>) will become CodeFluent Entities concepts such as Entities, Enumerations, Producers, etc. which themselves are in fact more global concepts as nodes, and attributes. Therefore, we can say CodeFluent Entities’ models are composed of three levels:

  • Mx: an infinite set of user-designed concepts (e.g. Customer, Order, Product). defined using a specific XML schema,
  • M²: CodeFluent Entities concepts (e.g. project, entity, property, method, rule, procedure, table, constraint),
  • M³: a hierarchical Document Object Model (DOM) using mostly Node and Attribute concepts.

In a nutshell, Mx corresponds to the XML and is parsed, whilst M² and M³ are inferred from Mx.

Clicking the “View Inferred Model” button of the Modeler’s ribbon will open a window in which you’ll be able to navigate through the model inferred by CodeFluent Entities. This way you can see what CodeFluent Entities understood of what you designed and check if everything is as expected before actually generating.

Here’s a short video this:

Working with the inferred model
  1. No comments yet.
  1. June 14, 2011 at 7:53 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s