Implementing Repository Pattern in ASP.NET MVC Application

how to implement the repository pattern n.w
1 / 11
Embed
Share

Learn how to implement the Repository Pattern in an ASP.NET MVC application with Developer Evangelist Dhananjay Kumar. Discover the advantages, step-by-step process, project structure, and overcoming difficulties associated with this pattern.

  • Repository Pattern
  • ASP.NET MVC
  • Developer
  • Dhananjay Kumar
  • Infragistics

Uploaded on | 1 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. How to implement the Repository Pattern in an ASP.NET MVC Application Dhananjay Kumar Developer Evangelist Infragistics Microsoft MVP http://debugmode.net

  2. Some Information Webinar recording will be available on http://www.infragistics.com/community/blogs/dhananjay_kumar/defa ult.aspx Visit http://www.infragistics.com/ for all the products details. Tweet us @infragistics for your experience Please reach out to us at Sales-India@infragistics.com for any follow up questions you may have. We welcome the opportunity to assist you.

  3. Share your experience by tweeting and Facebook with hashtag #Infragistics or mention to @infragistics

  4. Host : Dhananjay Kumar Developer Evangelist Infragistics 6 times Microsoft MVP @debug_mode Blog : http://debugmode.net Email : Dkumar@infragistics.com

  5. Agenda What is Repository Pattern Advantages of Repository Pattern Step by Step implementing Repository pattern Creating Core Project Creating Infrastructure Project Creating Test Project Creating MVC Project

  6. Advantage of Repository Pattern Business logic can be unit tested without data access logic Database access code can be reused Database access code is centrally managed so easy to implement any database access policies such that caching Easy to implement domain logics Domain entities or business entities are strongly typed with the annotations

  7. Some of the difficulties Duplicate code Difficulty implementing any data related logic or policies such that caching Difficulty in unit testing the business logic without having the data access layer Tightly coupled business logic and database access logic

  8. Project Structure

  9. Project Structure Project Responsibility Type Core Project Domain entities and interface for database operations Libraries to perform database operations. Such as Entity Framework library. Unit Tests for Infrastructure projects MVC based web application using Infrastructure and Core projects libraries using Dependency Injection Class library Infrastructure Project Class library Test Project Unit Test MVC Project MVC

  10. Let us write Code step by step to implement Repository Pattern

  11. What Infragistics can offer you? We welcome all of you to take advantage of a FREE 30 Day Trial by downloading the product at: http://www.infragistics.com/products/ultimate/download Please reach out to us at Sales-India@infragistics.com for any follow up questions you may have. We welcome the opportunity to assist you.

Related


More Related Content