Five informatization software development modes accumulated after years of ERP/MIS Development

Source: Internet
Author: User

After several years of development, I have experienced several project development projects, large and small, and accumulated the following software development modes and methods.
Take the northwind database as an example to compare the main differences and highlights of several development methods. For more information, see the blogArticle.
The development mode here only usesCode. For example, if the llbl Gen framework is used, the business logic is developed most of the time;
Based on ASP. NET application code generator method, suitable for the early stage of the project, a little bit of adding tables, adding fields, data read and write-related code can directly copy the code from the code generator; based on the repository factory method, it will be applied to a large number of stored procedures; based on the Code Smith method, first copy the Demo code of a standard project to obtain the basic structure of the project, and then as needed, extract the data read/write requirements from the requirements and copy the code.

1. Orm Development Method Based on llbl gen

Create a database connection for SQL Server.

Add the object for data read/write and establish the ing between the object and the database table.

Create a Windows Forms project, add a dview control to the form, and write the following code in the formload event of the form.
Dataaccessadapter adapter = new dataaccessadapter ();
Entitycollection <customersentity> customer = new entitycollection <customersentity> ();
Adapter. fetchentitycollection (customer, null );
Datagridview1.datasource = customer;

The project structure is as follows:

 

2. Code Generator-based development

This method is designed based on a single file or data table, so you need to manually add the project structure.

The project structure is as follows:

This step requires you to use the enterprise database configuration file editing tool to edit the configuration file.

This mode is essentially a DB-script method, where SQL statements are pieced together and sent to the database for Data Reading and writing.

3 Microsoft lightweight code generator repository Factory

With Microsoft's Enterprise Library, coupled with this code generation tool, the development speed is also very fast.

The final data access code looks like this

Icustomersrepository repository = repositoryfactory. Create <icustomersrepository> ("northwind ");
List <customers> customers = repository. getallfromcustomers ();
Datagridview1.datasource = MERs MERS;

Refer to the article "Microsoft lightweight code generator repository factory" to learn about the development steps of this mode.

4 Development Method Based on the Code Smith Template

The self-written code generator, ASP. NET application code generator, is often unable to handle changes in demand, and the template code generated by upgrading may also encounter obstacles.
For example, to add serialization support to the generated entities, You need to modify the code and re-compile the code. After you know the code Smith, you can understand the power of template generation.

This is a set of ERP/MIS templates, build all. CST can generate all the files required by the project, from the model object to the contract and sqlclient interfaces, to the Web UI and Windows UI, templates can be used for automatic generation.
I used to write a plug-in tool for batch template generation in ERP/MIS development. Smith Builder

This mode requires a very standard demo to express the meaning and role of each method in the template. It is also recommended to improve the efficiency of project development by improving the template or demo.
IfSource codeIf you are interested, you can download its source code from source code of epn.codeplex.com.

 

5. Nhibernate Development Method Based on Mindscape Nhibernate designer

The project uses nhib.pdf as the orm framework to read and write data, and works with the model-first or database-first development method provided by Mindscape nhib.pdf designer to achieve rapid development.

Mindscape Nhibernate uses the standard Nhibernate method to develop database applications. As a visualization tool, it improves the ing between database fields and Object Attributes. Instead of storing XML files, it is directly embedded into the code. For more details, see Introduction to erp mis development Mindscape nhib.pdf + MySQL quick development.
Later, when I got started with llbl Gen, I also learned about the Nhibernate framework provided by llbl Gen.

Because you are familiar with the API interfaces and methods of llbl Gen runtime, you have not applied the Nhibernate framework of llbl Gen to project development. Porting code from one ORM framework to another is a nightmare. Besides, there is also a more popular Entity Framework.
For more details, see erp mis llbl Gen nhib.pdf + MySQL quick start.

Summary: I deliberately disrupted the sequence of projects I used in these modes, that is, I could not see when it was applied to the project. Different learning stages have different understandings and explorations, so they will try to find some development modes for reference by their team members. There are more technologies, such as the Entity Framework, which has not been applied, and the update is too fast; The LINQ to SQL is out of the project even if it has not been applied to the project; ASP. net MVC has never been used in projects ...... By deliberately introducing these technologies that I don't know and are familiar with, and hitting myself, I want to draw the last conclusion: No matter what technology or method is used, the company's tasks should be completed on time, timely delivery of projects is the best technology and method applied.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.