jff-csharp-tools-9
9.3.2
See the version list below for details.
dotnet add package jff-csharp-tools-9 --version 9.3.2
NuGet\Install-Package jff-csharp-tools-9 -Version 9.3.2
<PackageReference Include="jff-csharp-tools-9" Version="9.3.2" />
<PackageVersion Include="jff-csharp-tools-9" Version="9.3.2" />
<PackageReference Include="jff-csharp-tools-9" />
paket add jff-csharp-tools-9 --version 9.3.2
#r "nuget: jff-csharp-tools-9, 9.3.2"
#:package jff-csharp-tools-9@9.3.2
#addin nuget:?package=jff-csharp-tools-9&version=9.3.2
#tool nuget:?package=jff-csharp-tools-9&version=9.3.2
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 | Versions 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. |
-
net9.0
- jff-csharp-tools (>= 2.3.2)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.7)
- Microsoft.AspNetCore.Mvc (>= 2.3.0)
- Microsoft.EntityFrameworkCore (>= 9.0.4)
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 |
|---|---|---|
| 9.3.7 | 372 | 12/16/2025 |
| 9.3.6 | 267 | 12/16/2025 |
| 9.3.5 | 435 | 12/11/2025 |
| 9.3.4 | 451 | 12/11/2025 |
| 9.3.3 | 430 | 12/11/2025 |
| 9.3.2 | 556 | 12/8/2025 |
| 9.3.1 | 416 | 12/8/2025 |
| 9.3.0 | 212 | 12/4/2025 |
| 9.2.12 | 108 | 11/28/2025 |
| 9.2.11 | 299 | 11/21/2025 |
| 9.2.10 | 304 | 11/21/2025 |
| 9.2.9 | 308 | 11/21/2025 |
| 9.2.8 | 401 | 11/20/2025 |
| 9.2.7 | 399 | 11/19/2025 |
| 9.2.6 | 403 | 11/19/2025 |
| 9.2.5 | 165 | 8/3/2025 |
| 9.2.4 | 165 | 8/3/2025 |
| 9.2.3 | 156 | 8/3/2025 |
| 9.2.2 | 138 | 7/4/2025 |
| 9.2.1 | 190 | 6/26/2025 |
| 9.2.0 | 195 | 6/24/2025 |
| 9.1.11 | 151 | 6/1/2025 |
| 9.1.10 | 151 | 5/31/2025 |
| 9.1.9 | 151 | 5/31/2025 |
| 9.1.8 | 149 | 5/24/2025 |
| 9.1.7 | 145 | 5/24/2025 |
| 9.1.6 | 132 | 5/24/2025 |
| 9.1.5 | 284 | 5/14/2025 |
| 9.1.3 | 280 | 5/14/2025 |
| 9.1.1 | 281 | 5/13/2025 |
| 9.1.0 | 282 | 5/13/2025 |
| 9.0.12 | 173 | 12/15/2024 |
| 9.0.11 | 158 | 12/11/2024 |
| 9.0.10 | 168 | 12/4/2024 |
| 9.0.9 | 167 | 12/4/2024 |
| 9.0.8 | 166 | 12/4/2024 |
| 9.0.7 | 171 | 12/4/2024 |
| 9.0.6 | 159 | 12/3/2024 |
| 9.0.5 | 161 | 12/3/2024 |
| 9.0.4 | 162 | 11/30/2024 |
| 9.0.3 | 158 | 11/29/2024 |
| 9.0.1 | 165 | 11/29/2024 |
| 9.0.0 | 159 | 11/29/2024 |