Three-tier architecture access process between tiers

Source: Internet
Author: User

1, pass in the value, convert the value to type (integer type).

2, create the BLL layer of objects, through the object access BLL layer method call BLL layer.

3. The BLL layer method obtains an instance of the data access layer, instantiates the interface object of the Idal layer, which is created by the factory layer, and then returns the method of the content found by the Idal layer passing in the value.

4. The Data Factory accesses the SQL layer via the Webdal string given in the Web.config configuration file, returning a complete path to the call SQL layer to the BLL layer.

5, to call the SQL layer, the SQL layer completes the assignment model layer of the object value is null, given a parameter, call the SQL layer of the SqlHelper of the ExecuteReader method, read out the data assignment of each field is defined as an empty model layer object.

6, SqlHelper Execute SQL command, return a specified connection database recordset, where you need to drink parameter type, provide bit open connection command execution ready.

7, return the model layer to the query to get a row of records value assigned to the SQL layer of the introduction of the model Layer object, and then return this object to BLL.

8, back to the web layer of the BLL layer of the method call, the resulting object value assigned to the LBL tag, displayed in the foreground to the interface.



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.