Software--architecture--design DataAccess data Access

Source: Internet
Author: User

2017-12-29 10:09:01

Two data access policies to help the organization persist layer:

    1. Repository
    2. Data Access Objects (there is a one-to-one match between DAO and data table)

Data patterns and principles that gracefully address data access needs:

    1. Lazy Loading
    2. Identity Map
    3. Unit of work
    4. Query Object

Orm

Nhibernate/ms Entity Framework

The basis of the DAL strategy: Transaction management, data integrity, data query.

-------------------------------------------------------------

A DAL is a layer in an application that is solely responsible for interacting with the data store and performing the retrieval and persistence of business objects

(Note: Refers to a datastore, not a database.) It is not always necessary to use a database, and XML files are sometimes sufficient)

The DAL usually contains:

    • CRUD Create, Retrieve, Update, Delete
    • Transaction Management Transaction
    • Data concurrent Access Concurrency
    • The query mechanism feeds the business logic layer to retrieve objects that meet any given criteria.

Software--architecture--design DataAccess data Access

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.