Data Access

600 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
600
On SlideShare
0
From Embeds
0
Number of Embeds
31
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Data Access

  1. 1. Project: Data Access library Data access API: ADO.NET Language: C# Developer: Efoe CLUMSON-EKLU This project is the basis for other projects that I’ve completed at SetFocus LLc. It is the data access module that will be reused in the “public library project” a window & web application that help manage books loans and members transactions in a public library. The main objective of this project is to: • Design the Business and Data Access tiers • Develop code that is easily maintainable. • Provide adequate error handling. • Write Stored Procedures on the SQL Server database for the application’s interaction with data. • Use database-programming techniques that provide maximum programming flexibility and control while minimizing resource utilization
  2. 2. The Solution. <ul><li>There are three component projects that make up the final solution: </li></ul><ul><li>- The Entities project: Contains the Items class, Adult and Juvenile member classes that represent the various membership levels. It also has the error code, CustomException classes and a strongly typed dataset that takes « items » from the database. </li></ul><ul><li>- The Data Access project: is the actual database logic part of the solution. It has a basic « IDataAccess » interface that is implemented into a « LibraryDataAccess » class where methods take care of interaction with the SQL Server database. On the SQL server database, I created stored procedures that will be called in this layer for all queries. </li></ul><ul><li>- The Business Logic project: Contains a class « LibraryBusiness » that will be used by client applications to build their presentation layers. It contains an instance of the data access layer and makes calls to database interaction methods. </li></ul>
  3. 3. Sample codes: Entities.Member
  4. 4. Entities.Member
  5. 5. Sample codes: Entities.JuvenileMember
  6. 6. Sample codes: Entities.Item
  7. 7. Sample codes: Entities.LibraryException
  8. 8. Sample codes: DataAccess.LibraryDataAcces
  9. 9. LibraryDataAcces
  10. 10. Sample codes: Stored Procedures
  11. 11. Stored Procedures
  12. 12. Stored Procedures
  13. 13. Stored Procedures
  14. 14. Sample codes: BusinessLayer.LibraryBusiness
  15. 15. The business and data access layers built in this project will help on Later project such as the Windows and Web application versions of the “ Public Library” projects. As a reusable module, it saved a great deal of Work reinventing the wheel when creating the clients. On the database side, the stored procedures helped create a robust and More secured application. Overall, this project was a real experience that only made me a better Programmer.

×