Main Content

ASP.NET MVC and the Repository Pattern

About the Talk

September 19, 2009 11:30 AM

ECPI in Raleigh, N.C.

ECPI in Raleigh, N.C.

ASP.NET MVC is a great tool for developing data-driven websites that capture and display data. The Model-View-Controller architectural pattern allows for the separation of the data and business rules (the Model) from the user interface (the View) and from the application logic (the Controller.) The Repository Pattern allows us to further isolate our data access from the rest of the application. We’ll look at the Repository Pattern and a few relevant aspects of Domain Driven Design to better understand how the Repository Pattern should be used in an ASP.NET MVC application. We’ll create a set of classes that isolate our data access code from the rest of the application. We’ll create an interface describing the methods we’ll use to interact with the data such as CreateCustomer(), DeleteCustomer(), ListCustomers(), etc. Then we’ll create a concrete class that implements that interface.

This session should give you a good understanding the Repository Pattern, some relevant DDD concepts and how they all play into developing a loosely couplet and testable ASP.NET MVC application.

Ratings and Recommendations

This Talk hasn't been rated yet. Sign In to rate Talks.

comments powered by Disqus