jff-csharp-tools-8
8.2.2
dotnet add package jff-csharp-tools-8 --version 8.2.2
NuGet\Install-Package jff-csharp-tools-8 -Version 8.2.2
<PackageReference Include="jff-csharp-tools-8" Version="8.2.2" />
<PackageVersion Include="jff-csharp-tools-8" Version="8.2.2" />
<PackageReference Include="jff-csharp-tools-8" />
paket add jff-csharp-tools-8 --version 8.2.2
#r "nuget: jff-csharp-tools-8, 8.2.2"
#:package jff-csharp-tools-8@8.2.2
#addin nuget:?package=jff-csharp-tools-8&version=8.2.2
#tool nuget:?package=jff-csharp-tools-8&version=8.2.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 | 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. |
-
net8.0
- jff-csharp-tools (>= 2.1.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.11)
- Microsoft.AspNetCore.Mvc (>= 2.2.0)
- Microsoft.EntityFrameworkCore (>= 8.0.11)
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 |
---|---|---|
8.2.2 | 110 | 7/4/2025 |
8.2.1 | 164 | 6/26/2025 |
8.2.0 | 142 | 6/24/2025 |
8.1.11 | 126 | 6/1/2025 |
8.1.10 | 115 | 5/31/2025 |
8.1.9 | 109 | 5/31/2025 |
8.1.8 | 123 | 5/24/2025 |
8.1.7 | 95 | 5/24/2025 |
8.1.6 | 104 | 5/24/2025 |
8.1.5 | 444 | 5/14/2025 |
8.1.4 | 222 | 5/14/2025 |
8.1.3 | 240 | 5/14/2025 |
8.1.1 | 232 | 5/13/2025 |
8.1.0 | 226 | 5/13/2025 |
8.0.12 | 477 | 12/15/2024 |
8.0.11 | 109 | 12/11/2024 |
8.0.10 | 158 | 12/4/2024 |
8.0.9 | 125 | 12/4/2024 |
8.0.8 | 116 | 12/4/2024 |
8.0.7 | 114 | 12/4/2024 |
8.0.6 | 115 | 12/3/2024 |
8.0.5 | 113 | 12/3/2024 |
8.0.4 | 118 | 11/30/2024 |
8.0.3 | 122 | 11/29/2024 |
8.0.1 | 121 | 11/29/2024 |
8.0.0 | 122 | 11/29/2024 |