Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

Updated Wiki: Home

$
0
0

Generic Unit of Work and Repositories (Lightweight Fluent) Framework with Sample Northwind ASP.NET MVC 5 Application

For questions and support please contact Le via Twitter @LeLong37.

You can stop creating a repository with all the same plumbing for every single domain entity now. :)

Documentation
http://blog.longle.net/2013/05/11/genericizing-the-unit-of-work-pattern-repository-pattern-with-entity-framework-in-mvc/

Live Demo Site
http://longle.azurewebsites.net/Spa/Product#/list

Unit of Work and Repository Quick-Start Video (Uploaded: 01/03/2012)

This video will touch on the following topics:

  • Entity Framework Power Tools
  • Uow & Repo Framework
  • Generating EF Mappings and POCO's
  • Upgrading the stack to EF 6.2
  • Basic Customer CRUD Use Case with MVC Scafolding Template w/ Async
  • Refactoring the CustomerController to use UoW & Repo Framework w/ Async
  • Why the ICustomerService Approach?
  • Why Commit Unit of Work Outside the Service vs. versa
  • Quick Examples with Eager Loading, Filter, and Sorting

Note
Enable NuGet Package Restore on the Solution to download NuGet packages. Although this is exampled in ASP.NET MVC 5, the framework can be used with in Microsoft .NET technology stack e.g. WPF, WCF, Windows Services, etc.

Unit of Work & Repository Framework Road Map

v1.0 - Released 09/09/2013

  • 655 downloads, 4121 views, thanks everyone for the all the feedback for v1.0, really helped with our road mapping.

v2.0 - Released 10/09/2013

  • Async methods Unit of Work and Repostiories - Ivan (@ifarkas)
  • OData Async - Ivan (@ifarkas)
  • Glimpse
  • Glimpse EF6
  • Northwind.Repostiory Project (layer) best practices for extending the Repositories
  • Northwind.Services Project (layer), best practices for implementing business facade
  • Refactored UX in Sample Application (see live demo)

v2.1 - Released 11/17/2013

  • Mocked DbContext
  • Mocked DbSet
  • Sample Mocked Unit Test Project: Northind.Test
  • DbContextBase API update to automatically reset Entity States after Unit Of Work Save

v3.0 - TBA

  • Bootstrapper video on using Framework in your project in less 3 minutes
  • Updating UnitOfWork.IRepostiory<TEntity> Repository<TEntity>() to IoC vs. Reflection
  • Entlib v6.0 Semantic Logging with ETW
  • Entlib v6.0 Exception Handling
  • Entlib v6.0 Unit Interception example (unobtrusive) logging

Sample application
Visual Studio 2013, Entity Framework 6, Entity Framework for Sql Server CE, ASP.NET MVC 5, Kendo UI Web, OData, Entlib Unity 3. Sql Server CE was used for complete free hosting with Azure Website PaaS, you can change this to use Sql Server (Sql Server LocalDb is included) if needed.


Viewing all articles
Browse latest Browse all 1539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>