Smooth.IoC.Dapper.Repository.UnitOfWork icon

Smooth.IoC.Dapper.Repository.UnitOfWork


The package Provides a solution for the Repository and UnitOfWork patterns together with inversition of control.
On the project site there are examples of Autofact, Castle.Windsor, Ninject, Simpleinjector, StructureMap, and Unity integration.

It is ment to integrate nice and smooth like...

The project uses tor its repository work Dapper as ORM and Dapper.FactCRUD for fluentness. But you can use is as a foundation and with any IDbConnection and IDbTransient framework you like.

The library gives you the building blocks to:
* Create Sessions from the IDbFactory in your methods, IDbFactory should be injected into your class's. As Session extends IDbConnection and will Open on the factory spawning the session and dispose the connection on disposal of the connection.
* Your Sessions can create UnitOfWork's.

As Session extends IDbConnection and will Open on the factory spawning the session and dispose the connection on disposal of the connection.
* If your logic just needs "just a" UnitOfWork with a session that has the same scope, the factory can create it for you.
* The IRepository and abstract concrete class should be used on your individual repository classes to provide simple and basic calls.

info

- Last update: 3/26/2017
- Version: 0.4.21
- Project documentation: https://github.com/generik0/Smooth.IoC.Dapper.Repository.UnitOfWork
- Read more info on NuGet.org...
Dependencies
This package has 6 dependencies.
0 packages depend on this package.
Install

Run this command from the Package Manager Console:

Install-Package Smooth.IoC.Dapper.Repository.UnitOfWork
Tags

Dapper Crud ORM sql SQLite MySql mssql LocalDb PostgreSql POCO repository UnitOfWork DI IoC Autofac castle ninject structuremap unity simpleinjector




Comments


Did you write a blog post and have a URL to share about this package? Tips and tricks? Please submit your links and reviews.

Please login first. It's easy! Just use your Google or Microsoft account.