ASP.NET, IBATIS for .NET, Davactory data representation in web development

xiaoxiao2021-03-06  41

Summary:

This article discusses the ASP.NET, IBATIS, DAOFACTORY Talk about the data representation in Web development, showing how to organize data in all layers in ASP.NET development.

Ibatis for .NET is a powerful and practical SQL Map tool, not an ORM tool. It is the data that maps the SQL statement into a .NET object, and the data in the .NET object with the ASP.NET page (asp.net, I call it ", it is FORMBEAN (with the FORMBEAN in J2EE is not the same concept)))) Combining, this can achieve the greatest reuse and flexibility of this .NET class.

Daofactory is also a Component provided by Ibatis for .NET. Used to dynamically configure the implementation class of the DAO interface, so when the business needs can be changed, you can change the implementation of DAO by XML without the need to recompile the program.

So in such a frame:

1. The web layer is displayed and acquired through FormBean.

2. The business layer is indicated by the .NET class that is mapped through the iBATIS.

3. The DAO layer is represented by the .NET class mapped by DAOFACTORY IBATIS.

Therefore, the entire architecture can be represented by the following figure:

In this architecture, the .NET class mapped by Ibatis SQL Map, as the PO and VO in this architecture. At the same time, this .NET class is also an important component of FormBean.

See http://www.yjsoft.net/archive/6.aspx

转载请注明原文地址:https://www.9cbs.com/read-50946.html

New Post(0)