Platy.AdventureWorks.Repository 0.1.4

dotnet add package Platy.AdventureWorks.Repository --version 0.1.4
                    
NuGet\Install-Package Platy.AdventureWorks.Repository -Version 0.1.4
                    
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="Platy.AdventureWorks.Repository" Version="0.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Platy.AdventureWorks.Repository" Version="0.1.4" />
                    
Directory.Packages.props
<PackageReference Include="Platy.AdventureWorks.Repository" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Platy.AdventureWorks.Repository --version 0.1.4
                    
#r "nuget: Platy.AdventureWorks.Repository, 0.1.4"
                    
#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.
#:package Platy.AdventureWorks.Repository@0.1.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Platy.AdventureWorks.Repository&version=0.1.4
                    
Install as a Cake Addin
#tool nuget:?package=Platy.AdventureWorks.Repository&version=0.1.4
                    
Install as a Cake Tool

Build Project

NuGet Version

Overview

A project template that I use to quickly create a set of repository classes for interacting with any existing database.

Features

  • The DbContext class is internal, which means that external libraries users cannot make db changes without interacting with the repository classes.
  • The repository classes validate the entities before making changes to the database keeping it clean.
  • A Result type is returned in case of success or failure, instead of relying on exceptions. Makes testing and validation easier.
  • A notification is published for every Create, Update and Delete event. External libraries can subscribe to these events and accordingly perform any required action.
  • csx templates to customize the entities,the repository classes and the model classes that are output by the generator.
  • Integration tests using TestContainers helps testing the repository classes with a real database that is spun up and down as the tests execute.

Build solution

First, initialize the submodules using git submodule update --init.

Build the solution - Platy.AdventureWorks.Repository.sln.

Open the solution - EntityFrameworkCore.Generator/EntityFrameworkCore.Generator.sln and build it. This is one of the submodules downloaded.

Execute the command ..\..\efg\EntityFrameworkCore.Generator.exe generate -f .\entity-generation.yml from the directory of Platy.AdventureWorks.Repository.csproj. This generates the domain files. Make sure the AdventureWorks database is available.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.1.4 475 12/1/2025
0.1.3 388 11/19/2025
0.1.2 157 10/10/2025
0.0.7 113 10/4/2025
0.0.6 177 9/30/2025
0.0.4 169 9/29/2025

* Net9