How to implement the Repository Pattern in an ASP.NET MVC Application Dhananjay Kumar Developer Evangelist – Infragistics Microsoft MVP

Slides:



Advertisements
Similar presentations
Spring, Hibernate and Web Services 13 th September 2014.
Advertisements

{ Model View Controller ASP.NET By Scott Crooks & Maggie Wettergreen.
Jeff Derstadt Senior Development Lead Microsoft Corporation Patterns & Architecture.
Dhananjay Microsoft MVP
Fabian Vilers Hands on ASP.NET MVC.
Enterprise development reference architecture (EDRA) -Deepti Seelamsetti.
Page 1 Building Reliable Component-based Systems Chapter 18 - A Framework for Integrating Business Applications Chapter 18 A Framework for Integrating.
How to Write Unit Tests in C#
Tutorial -01. Objective In this session we will discuss about : 1.What is MVC? 2.Why MVC? 3.Advantages of MVC over ASP.NET 4.ASP.NET development models.
MICROSOFT CONFIDENTIAL Sept 2009 | Page 1 | BDM Presentation.
Web Application Architecture: multi-tier (2-tier, 3-tier) & mvc
UNIT-V The MVC architecture and Struts Framework.
Entity Framework Code First End to End
Presenter - Donn Felker.  Senior Consultant for Microsoft Gold Certified Partner- Statêra.  8 years of experience in developing and architecting enterprise.
Doing Something Useful with Enterprise Library 3.0 Benjamin Day Level: Intermediate.
Todd Snyder Development Team Lead Infragistics Experience Design Group.
ASP.NET + jQuery + Odata = Goodness Stephen Walther Superexpert.com
Getting Started with the ASP.NET Web API Dhananjay Kumar Infragistics Consultant Microsoft MVP
Building an Offline Smart Client using Domain-Driven Design Principles Tim McCarthy.
Codeigniter is an open source web application. It occupies a very small amount of space in the memory and is most useful for developers who aim to develop.
Alcatel-Lucent CDC Workshop, Coaching & Knowledge Transfer Architecture.
Domain and Persistence Patterns. Fundamental Pattern Types Design Patterns Business Logic Patterns.
Building Secure Web Applications With ASP.Net MVC.
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
Model View Controller MVC Web Software Architecture.
Introducing… Apache Isis
Getting started with ASP.NET MVC Dhananjay
The Start Menu……..Exposed What you never knew existed.
MVC WITH CODEIGNITER Presented By Bhanu Priya.
ARCH-7: Integrate this! SonicMQ® and the OpenEdge® Reference Architecture Christian Stiller Technical Architect.
Component Patterns – Architecture and Applications with EJB copyright © 2001, MATHEMA AG Component Patterns Architecture and Applications with EJB Markus.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
JavaScript for C# developers Dhananjay Microsoft MVP
Simplifying the Code First Approach in the Entity Framework Dhananjay Kumar Infragistics Consultant Microsoft MVP
Mick Badran Using Microsoft Service Fabric to build your next Solution with zero downtime – Lvl 300 CLD32 5.
#SPSSAN June 30, 2012 San Diego Convention Center WRITING TESTABLE CODE In SharePoint.
Testing WebForms w/ Model-View-Presenter Erik Peterson.
DOMAIN DRIVEN DESIGN Dave 12 May WHAT IS DDD? Set of principles to aid in building complex systems Enables us to focus on core problem domain NOT.
DotNetNuke® Web Application Framework Michael Washington Socaldug.org – Buena Park, CA
Building Web Applications using the latest ASP.NET technologies Max Déboli Director de Desarrollo Microsoft Azure MVP Lagash
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core * aka ASP.NET 5 before.
Understanding Dependency Injection… and those pesky containers Miguel A. Castro Architect -
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core RC2 * aka ASP.NET 5 before.
UNIT TESTING IN ANGULARJS Dhananjay
ASP.NET Core* Shahed Chowdhuri Sr. Technical WakeUpAndCode.com A Quick Overview of ASP.NET Core * aka ASP.NET 5 before.
Angularjs 2.0 : Getting started
Develop a Quick and Dirty Web interface to your database:
Simplifying Objects and Inheritance in JavaScript
Building Web Applications with Microsoft ASP
Stop Those Prying Eyes Getting to Your Data
Introduction to .NET Florin Olariu
SA Capstone Requirements and Design Week 6 SYST Winter 2017
Visual Studio 2017 By Michael Washington
Microsoft List Schedule April – May 2016
ASP.NET MVC Introduction
Adam Gent UK UC User Group
Building Web Applications with Microsoft ASP
It’s a Knockout! MVVM Style Web Development
End to end app development ASP.NET, WCF, WF, EF, & RIA Services
Entity Framework Core*
Explore web development with Microsoft ASP.NET Core 1.0
Step by Step - AngularJS
A Quick Overview of ASP.NET Core 1.0
Model-View-Controller (MVC) Pattern
מונחים בסיסיים במודל השכבות
Rich single page applications with SharePoint
ASP.NET Core* MVC and Web API Shahed Chowdhuri
UI test automation of MVC apps with Microsoft Edge WebDriver
Angular 2 : CRUD Operations
Building Your First ASP.NET Core Web Application
Presentation transcript:

How to implement the Repository Pattern in an ASP.NET MVC Application Dhananjay Kumar Developer Evangelist – Infragistics Microsoft MVP

Some Information  Webinar recording will be available on ult.aspx ult.aspx  Visit for all the products details.  Tweet for your experience  Please reach out to us at for any follow up questions you may have. We welcome the opportunity to assist

Share your experience by tweeting and Facebook with hashtag #Infragistics or mention

Host : Dhananjay Kumar  Developer Evangelist – Infragistics  6 times Microsoft MVP  Blog : 

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

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

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

Project Structure

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

Let us write Code step by step to implement Repository Pattern

What Infragistics can offer you? We welcome all of you to take advantage of a FREE 30 Day Trial by downloading the product at: Please reach out to us at for any follow up questions you may have. We welcome the opportunity to assist