A little tutorial on CodeFluent Entities with ASP.NET MVC4

30 篇文章 0 订阅
2 篇文章 0 订阅

/*

Author: Jiangong SUN

*/


CodeFluent Entities is a model-first development tool which creates non-specific database model, specific database scripts, business model objects, and different presentation projets like ASP.NET MVC, WPF etc.

I've used this tool since one week ago, so there are surely a  lot of things I've not used. Here I just want to make a simple introduction based on my experience.


Firstly, you should install codefluent entities in your computer. It's free for personal use, and you can just register in its website and get the product key to activate it.


As it is a model-first tool, you should firstly design your system model.

Firstly, create a new CF project.


Then create your database model in CodeFluent Modeler. You can add entity, property, relationship, enum etc.

The model should be located in "Surfaces"

You can create relationships in 3 ways:

1) indicate relationship when creating property, by choosing "Advanced" mode.


2) Draw relationship manually

choose an table property by pressing "Shift" key, it will draw a line, choose another property in another table. And indicate their relationship.

3) Define relationships in your model file which is located in Parts and has .cfp extension


Once you've disigned your model, you will have something like this.


Now you need to create your producers to generate sql scripts and the database.

You just need to create a producer for your database. CodeFluent Entities support several types of database like SQL Server, Oracle, MySQL, PostgreSQL, SQL Azure. 

You can choose the database you want and its version, then specify target project location.


Now the database producer is created. Once you build your model project, it will generate all the sql scripts you need and your database.


Then, you need to create a BOM producer for your business object model objects. You repeat the same process, and it will be generated.


You model project will be structured like this.



Finally, you need to create your asp.net mvc4 producer.

Choose ASP.NET template in template category. 


Then you build the model project, it will generate controllers and views for all the business objects.


You will surely encounter some specific problems when you try to implement your project with CodeFluent Entities. You have the official documentation and a support forum.

http://www.softfluent.com/documentation/

http://forums.softfluent.com


I hope you can enjoy this tutorial. Enjoy coding!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值