Tritón is a utility library that facilitates access to Database Management System APIs, particularly Entity Framework Core. It provides services, base classes, dynamic generators, and other miscellaneous tools.
Tritón is available on NuGet and my private GitHub repository.
| Release | Link |
|---|---|
| Latest stable version: | |
| Latest development version: |
Package Manager
Install-Package TheXDS.Triton.NET CLI
dotnet add package TheXDS.TritonPaket CLI
paket add TheXDS.TritonPackage Reference
<PackageReference Include="TheXDS.Triton" Version="1.4.0" />Interactive Window (CSI)
#r "nuget: TheXDS.Triton, 1.4.0"
To obtain Tritón packages directly from GitHub, it is necessary to add my private repository. To do this, simply run in a terminal:
nuget sources add -Name "TheXDS GitHub Repo" -Source https://nuget.pkg.github.com/TheXDS/index.jsonTritón requires a C# 10 compatible compiler, due to certain special language features that help reduce code complexity.
Tritón also requires .NET SDK 6.0 to be installed on the system.
dotnet build ./src/Triton.slnBinaries will be found in the ./Build folder at the root of the repository.
dotnet test ./src/Triton.slnIt is possible to obtain a code coverage report locally. To do this, it is necessary to install
ReportGenerator, which will read the test execution results and generate a web page with the coverage results.
To install ReportGenerator run:
dotnet tool install -g dotnet-reportgenerator-globaltoolAfter installing ReportGenerator, you can run the following command:
dotnet test .\src\Triton.sln --collect:"XPlat Code Coverage" --results-directory:.\Build\Tests ; reportgenerator.exe -reports:.\Build\Tests\*\coverage.cobertura.xml -targetdir:.\Build\Coverage\Coverage results will be stored in ./Build/Coverage
If Tritón has been useful to you, or you are interested in donating to encourage the development of the project, feel free to make a donation via PayPal, Ko-fi or get in touch with me directly.
Unfortunately, I cannot offer other donation methods at the moment due to my country (Honduras) not being supported by most platforms.