Twileloop.UOW 1.1.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Twileloop.UOW --version 1.1.0                
NuGet\Install-Package Twileloop.UOW -Version 1.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Twileloop.UOW" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Twileloop.UOW --version 1.1.0                
#r "nuget: Twileloop.UOW, 1.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Twileloop.UOW as a Cake Addin
#addin nuget:?package=Twileloop.UOW&version=1.1.0

// Install Twileloop.UOW as a Cake Tool
#tool nuget:?package=Twileloop.UOW&version=1.1.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!

"Buy Me A Coffee"

<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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 225 5/18/2023
2.0.0 213 4/12/2023
1.1.0 224 4/7/2023
1.0.0 209 4/7/2023