Base generic implementation using Repository & Unit of Work Design Pattern of CRUD operations in .NET 6.0
CLI
dotnet add package CommonGenericClasses --version 8.0.0
PM
Install-Package CommonGenericClasses -Version 8.0.0
using CommonGenericClasses;
using CommonGenericClasses;
public class PlayerRepository : BaseRepo<Player>
{
public PlayerRepository(DbContext db) : base(db)
{
}
}
Now all CRUD operations are available for PlayerRepository