Smooth.IoC.Dapper.Repository.UnitOfWork
0.5.9
dotnet add package Smooth.IoC.Dapper.Repository.UnitOfWork --version 0.5.9
NuGet\Install-Package Smooth.IoC.Dapper.Repository.UnitOfWork -Version 0.5.9
<PackageReference Include="Smooth.IoC.Dapper.Repository.UnitOfWork" Version="0.5.9" />
paket add Smooth.IoC.Dapper.Repository.UnitOfWork --version 0.5.9
#r "nuget: Smooth.IoC.Dapper.Repository.UnitOfWork, 0.5.9"
// Install Smooth.IoC.Dapper.Repository.UnitOfWork as a Cake Addin #addin nuget:?package=Smooth.IoC.Dapper.Repository.UnitOfWork&version=0.5.9 // Install Smooth.IoC.Dapper.Repository.UnitOfWork as a Cake Tool #tool nuget:?package=Smooth.IoC.Dapper.Repository.UnitOfWork&version=0.5.9
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. The IoC framework is not an issue... 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. But ofcasue you can add all the queries you want into your Repositories and use the dapper and dapper.FastCRUD (or any other extensions) functionality provided to you.
* The repository abstract classes use Dapper.FastCRUD to give you a fluent ORM experience with the most common calls.
* This library does not lock you to using dapper and FastCRUD, you can use any library you like that extends IDbConnection and IDbTransation, and still use the IDbFactory, ISession and IUnitOrWork.
* Implemented for .net 4..0, .net 4.5.2, .net 4.6.1, .net 4.7.1+, .net 1.6 standard, .net 2.0 standard+.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.6 is compatible. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net452 is compatible. net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5.2
- Dapper (>= 1.50.4)
- Dapper.FastCrud (>= 2.4.1)
- Smooth.IoC.UnitOfWork (>= 0.5.8)
- System.Data.Common (>= 4.3.0)
-
.NETFramework 4.6.1
- Dapper (>= 1.50.4)
- Dapper.FastCrud (>= 2.4.1)
- Smooth.IoC.UnitOfWork (>= 0.5.8)
- System.Data.Common (>= 4.3.0)
-
.NETFramework 4.7.1
- Dapper (>= 1.50.4)
- Dapper.FastCrud (>= 2.4.1)
- Smooth.IoC.UnitOfWork (>= 0.5.8)
- System.Data.Common (>= 4.3.0)
-
.NETStandard 1.6
- Dapper (>= 1.50.4)
- Dapper.FastCrud (>= 2.4.1)
- NETStandard.Library (>= 1.6.1)
- Smooth.IoC.UnitOfWork (>= 0.5.8)
- System.ComponentModel.Annotations (>= 4.3.0)
- System.Data.Common (>= 4.3.0)
-
.NETStandard 2.0
- Dapper (>= 1.50.4)
- Dapper.FastCrud (>= 2.4.1)
- Smooth.IoC.UnitOfWork (>= 0.5.8)
- System.Data.Common (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.