AspNetCore.Genesis 1.1.0

dotnet add package AspNetCore.Genesis --version 1.1.0
                    
NuGet\Install-Package AspNetCore.Genesis -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="AspNetCore.Genesis" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspNetCore.Genesis" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="AspNetCore.Genesis" />
                    
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 AspNetCore.Genesis --version 1.1.0
                    
#r "nuget: AspNetCore.Genesis, 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.
#:package AspNetCore.Genesis@1.1.0
                    
#: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=AspNetCore.Genesis&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=AspNetCore.Genesis&version=1.1.0
                    
Install as a Cake Tool

Genesis Library

Uma biblioteca que serve como base para api's, implementando um BaseRepository<T : IEntity> e BaseService<T : IEntity> a qual é dada toda a aplicação básica de CRUD

Code Structure

How to Use

Creating an entity

public class User : IEntity
{
    public string Name { get; set; }
}

IEntity only contains the 'int Id { get; set; }' property. Because all entities must have an id.

Creating repository:

public class UserRepository ( dbContext context )
    : BaseRepository<User> (context) {}

Creating service:

public class UserService( UserRepository Repository ) 
    : BaseService<User> (repository) {}

<br> <br>

Responsabilities

  • Repositories
    • Conection to database
  • Services
    • Business rules

Code Generator

A .NET Tool GenesisTool use this library to generate code structure for all entities in the database by conection string.

alternate text is missing from this package README image

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  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
1.1.0 140 11/26/2024
1.0.15 112 11/25/2024
1.0.14 190 9/6/2024
1.0.13 120 7/26/2024
1.0.12 102 7/25/2024
1.0.11 102 7/25/2024
1.0.10 112 7/25/2024
1.0.9 97 7/25/2024
1.0.8 108 7/24/2024
1.0.6 96 7/24/2024
1.0.5 130 7/18/2024
1.0.4 111 7/17/2024
1.0.3 124 7/4/2024
1.0.2 115 7/4/2024
1.0.1 112 7/4/2024
0.0.1 146 3/22/2024