A little tutorial on CodeFluent Entities with ASP.NET MVC4
来源:互联网 发布:vc access数据库 编辑:程序博客网 时间:2024/05/07 21:00
/*
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!
- A little tutorial on CodeFluent Entities with ASP.NET MVC4
- [MVC4]初识ASP.NET MVC4
- ASP.NET WebAPI: Getting Started with MVC4 and WebAPI
- On Tutorial with Caffe--a Hands DIY DL for Vision
- asp.net mvc4+easyui
- asp.net mvc4
- ASP.NET MVC4
- ASP.NET MVC4 RemoteAttribute
- asp.net mvc4
- A tutorial on Matrix
- Learning ASP.NET 2.0 with AJAX: A Practical Hands-on Guide [ILLUSTRATED]
- Tutorial on USB with Linux
- A Beginner's Tutorial - Understanding ControlState in ASP.NET
- ASP.NET MVC4 高级编程
- ASP.NET MVC4自定义分页
- ASP.NET MVC4 PRG模式
- ASP.NET 4.5 MVC4.0
- ASP.NET MVC4 学习参考
- Oracle 11gR2(11.2.0.3) Patchset 中7个不同文件的作用说明及下载地址
- 归档日志
- VC的调试方式 + VC不能调试的原因及解决方法
- RPM -U 升级机制探索
- MYSQL主从不同步延迟原理及其建议
- A little tutorial on CodeFluent Entities with ASP.NET MVC4
- php基础之字符串与数组(二)
- Unix哲学学习笔记
- codeforces 282 A B C
- 第一章.NET Framework
- IOS正则表达式
- Windows驱动_文件系统过滤驱动之六
- 【1307】TextView动态显示wifi状态的改变
- 用Collections.sort方法对list排序