Asp.net,ibatis for. Net,daofactory Data representation in web development

Source: Internet
Author: User
asp.net|web| Data Summary:

This article discusses the combination of asp.net,ibatis,daofactory on web development data representation, showing how each layer in asp.net development organizes data.



IBatis for. NET is a powerful and functional SQL Map tool, not an ORM tool. It is mapping the SQL statement to a. NET object, and combining this. NET object with the data in the ASP.net page (the asp.net of page datasource I call Formbean bar (not the same concept as the Formbean in Java) This will be achieved. NET class for maximum reusability and flexibility.

Daofactory is also ibatis for. NET provides a component. The implementation class used to dynamically configure the DAO interface, so that when business requirements are changed, the DAO implementation can be changed only through XML without recompiling the program.



So for such a framework:

1. The Web layer is Formbean to display and retrieve data.

2. The business layer is represented by a ibatis mapped. NET class.

3. The DAO layer is represented by the. NET class mapped by the Daofactory language Ibatis.

So the entire structure can be represented by the following diagram:




In this framework, the. NET class, mapped by Ibatis's SQL map, is used as the PO and VO in this architecture. And this. NET class is also an important component of Formbean.



Related Article

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.