Posted by: sbelus | 30/01/2013

CodeFluent Entities – Developer Review (Part 2)

In previous post I described a vision of the CodeFluent Entities. Now I will try to show how it works.

We have two options at the beginning: start new project or import from existing database. I will focus on the first option.

Let say we just want to create very simple windows application without care about the UI. A small movies database would be fine. I’ve created only Database project, class library for business entities and windows application project. Lets define entities as on the picture (I used designer to do this simple model):


In the model xml also looks very simple:


All those actions took me 10 minutes (with configuring the CodeFluent’s model). After code generation we get:

  • database schema together with views and stored procedures to load, save (with update), delete and load all entities by its type
  • business entities with properties and methods that interacts with database procedures
  • collection entities with methods like: LoadAll, SaveAll, etc.

I bet you won’t do those things faster than 10 minutes by your self.

Now it is possible to create UI by our self and just use those generated parts. When you create desktop application you may also want to use WCF services. It is just simple as above steps. We just need to add new sub-producer: Smart Client producer, that will generate client entities (to separate project) and WCF services (each per entity). We can also use CodeFluent built-in sevice to host those services. It can work either as console application and windows service. Configuration files can also be generated by a simple Template producer that uses pattern for configuration files.

As you can see CodeFluent Entities is very powerful tool. Can it be used for real projects? In my opinion yes. In the next post I will describe what issues you can face in a bigger project.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s


%d bloggers like this: