Use Enterprise Library to improve your application system 3-Data Access Application Block

Source: Internet
Author: User

There is nothing to say, just summarize some best practices:
1. advantages of using Windows security mechanism for database connection: high security; disadvantages: low performance.
Advantages of database security mechanism for database connection: high performance and low security.
2. We recommend that you use stored procedures for data access instead of using "embedded SQL" to access the database.
Advantage: improved performance
Individually secured
Easier maintenance
An extra level of each action
Reduce network Trafic
3. Best practices for using dataset to access data:
Require a disconnected memory-resident cache.
In-memory relational view.
From multiple data soruce.
Update or submit.
Webcontrol Data Binding require ilist
Best practices for using dataread to access data:
Binary Large Object (BLOB) data
Large volumes
Webcontrol Data Binding require ienumerable
Reduce the memory footprint

Advantages of data access block:
Optimize the performance by caching dbcommand.

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.