Twileloop.UOW
1.0.0
Prefix Reserved
See the version list below for details.
dotnet add package Twileloop.UOW --version 1.0.0
NuGet\Install-Package Twileloop.UOW -Version 1.0.0
<PackageReference Include="Twileloop.UOW" Version="1.0.0" />
paket add Twileloop.UOW --version 1.0.0
#r "nuget: Twileloop.UOW, 1.0.0"
// Install Twileloop.UOW as a Cake Addin #addin nuget:?package=Twileloop.UOW&version=1.0.0 // Install Twileloop.UOW as a Cake Tool #tool nuget:?package=Twileloop.UOW&version=1.0.0
<br /> <div align="center"> <a href="https://github.com/sangeethnandakumar/Twileloop.UOW"> <img src="https://iili.io/HeD5SzG.png" alt="Logo" width="80" height="80"> </a>
<h2 align="center"> Twileloop UOW For LiteDB </h2> <h4 align="center"> Free | Open-Source | Fast </h4>
<p align="center"> <b> Twileloop.UOW is a .NET library that provides a simple and efficient implementation of the Unit Of Work (UOW) pattern using LiteDB. It is a plug-and-play solution that allows you to manage database operations with ease. </b> <br /> <a href="https://twileloop.epub.readthedocs.io"><strong>Explore the docs »</strong></a> <br /> <br /> </p>
</div>
License
Twileloop.UOW is licensed under the MIT License. See the LICENSE file for more details.
A small coffee would be a great way to support my work. Thank you for considering it!
<div align="center">
<h2 align="center"> DOCUMENTATION </h2> <h4 align="center"> This .NET library is a pre-built implementation of the unit of work pattern using LiteDB, providing a simple and efficient way to manage database operations. </h4>
</div>
Usage
const string connectionString = "Filename=<DATABASE_NAME>;Mode=Shared;Password=<PASSWORD>;";
using (var unitOfWork = new UnitOfWork(connectionString))
{
//Create a repo
var resourceRepo = unitOfWork.GetRepository<ApiResource>();
//Start transaction
unitOfWork.BeginTransaction();
//Do work
try
{
var newApiResource = new ApiResource {
DisplayName = "Survey API",
Name = "SurveyAPI",
Scopes = new List<string> { "read", "write" }
};
resourceRepo.Add(newApiResource);
//Commit transaction
unitOfWork.Commit();
}
catch (Exception)
{
//Rollback on failure
unitOfWork.Rollback();
}
}
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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- LiteDB (>= 5.0.16)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.