2017-12-29 10:09:01
Two data access policies to help the organization persist layer:
- Repository
- 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:
- Lazy Loading
- Identity Map
- Unit of work
- 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