jff-csharp-tools-6 6.2.2

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

C# Tools

C# Tools for .NET Core version 6.0.36, 8.0.11 or 9 is an open-source project offering a suite of utilities to enhance C# development for .NET Core. It includes libraries for common tasks, code snippets, and performance optimizations, helping developers improve productivity, code quality, and simplify complex tasks.

Install Package Manager

PM> Install-Package jff_csharp-tools-6

or

PM> Install-Package jff_csharp-tools-8

or

PM> Install-Package jff_csharp-tools-9

Install .NET CLI

> dotnet add package jff_csharp-tools-6

or

> dotnet add package jff_csharp-tools-8

or

> dotnet add package jff_csharp-tools-9

Install Paket CLI

> paket add jff_csharp-tools-6

or

> paket add jff_csharp-tools-8

or

> paket add jff_csharp-tools-9

Example of use in a .NET API project

Example 1: Using default entities

using Jff.CSharpTools.Domain.Entity;

public class MyEntity : DefaultEntity
{
    public string Name { get; set; }
}

Namespaces may vary depending on the package version (6, 8, or 9). Adjust the namespace according to the package installed in your project.

Example 2: Using DefaultService

using JffCsharpTools8.Domain.Service;
using JffCsharpTools8.Domain.Repository;
using JffCsharpTools.Domain.Entity;
using JffCsharpTools.Domain.Filters;
using JffCsharpTools.Domain.Model;
using Microsoft.EntityFrameworkCore;

// Suppose you have an entity:
public class Product : DefaultEntity<Product>
{
    public string Name { get; set; }
}

// And a DbContext:
public class MyDbContext : DbContext
{
    public DbSet<Product> Products { get; set; }
}

// Instantiating the service (dependency injection recommended):
var repository = new DefaultRepository<MyDbContext>(/* parameters */);
var service = new DefaultService<MyDbContext>(repository);

// Creating a new product
var newProduct = new Product { Name = "T-shirt" };
var createResult = await service.Create<Product>(userId, newProduct);

// Getting all products
var products = await service.Get<Product>();

// Getting products by user
var userProducts = await service.GetByUser<Product>(userId);

// Getting products by filter
var filter = new DefaultFilter<Product> { /* set filters */ };
var filteredProducts = await service.GetByFilter<Product, DefaultFilter<Product>>(filter);

// Getting product by primary key
var product = await service.GetByKey<Product, int>(userId, productId);

// Paginating products
var pagination = new PaginationModel<Product>
{
    Page = 1,
    PageSize = 10,
    Filter = new DefaultFilter<Product>()
};
var paginatedProducts = await service.GetPaginated<Product>(pagination, x => x.Name != null);

// Updating a product
newProduct.Name = "Updated T-shirt";
var updateResult = await service.UpdateByKey<Product, int>(userId, newProduct, productId);

// Deleting a product
var deleteResult = await service.DeleteByKey<Product, int>(userId, productId);

Adapt the examples according to the package version (6, 8 or 9) and the namespaces used in your project.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  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
6.2.2 85 7/4/2025
6.2.1 133 6/26/2025
6.2.0 133 6/24/2025
6.1.11 96 6/1/2025
6.1.10 94 5/31/2025
6.1.9 96 5/31/2025
6.1.8 92 5/24/2025
6.1.7 92 5/24/2025
6.1.6 92 5/24/2025
6.1.5 244 5/14/2025
6.1.3 224 5/14/2025
6.1.1 226 5/13/2025
6.1.0 228 5/13/2025
6.0.12 134 12/15/2024
6.0.11 202 12/11/2024
6.0.10 161 12/4/2024
6.0.9 114 12/4/2024
6.0.8 118 12/4/2024
6.0.7 108 12/4/2024
6.0.6 120 12/3/2024
6.0.5 117 12/3/2024
6.0.3 106 11/30/2024