jff-csharp-tools
2.0.6
See the version list below for details.
dotnet add package jff-csharp-tools --version 2.0.6
NuGet\Install-Package jff-csharp-tools -Version 2.0.6
<PackageReference Include="jff-csharp-tools" Version="2.0.6" />
<PackageVersion Include="jff-csharp-tools" Version="2.0.6" />
<PackageReference Include="jff-csharp-tools" />
paket add jff-csharp-tools --version 2.0.6
#r "nuget: jff-csharp-tools, 2.0.6"
#:package jff-csharp-tools@2.0.6
#addin nuget:?package=jff-csharp-tools&version=2.0.6
#tool nuget:?package=jff-csharp-tools&version=2.0.6
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 | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- CsvHelper (>= 33.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on jff-csharp-tools:
Package | Downloads |
---|---|
jff-csharp-tools-8
An open-source project offering a suite of utilities to enhance C# development for .NET Core version 8.0.11 |
|
jff-csharp-tools-9
An open-source project offering a suite of utilities to enhance C# development for .NET Core version 9.0.0 |
|
jff-csharp-tools-6
An open-source project offering a suite of utilities to enhance C# development for .NET Core version 6.0.36 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
2.1.0 | 152 | 7/4/2025 |
2.0.6 | 317 | 5/31/2025 |
2.0.5 | 197 | 5/24/2025 |
2.0.4 | 539 | 5/13/2025 |
2.0.3 | 252 | 5/13/2025 |
2.0.2 | 255 | 5/13/2025 |
2.0.1 | 254 | 5/13/2025 |
2.0.0 | 234 | 5/13/2025 |
1.0.10 | 630 | 12/11/2024 |
1.0.9 | 258 | 12/4/2024 |
1.0.6 | 207 | 12/3/2024 |
1.0.5 | 113 | 12/3/2024 |
1.0.4 | 151 | 12/3/2024 |
1.0.3 | 168 | 11/29/2024 |
1.0.0 | 152 | 11/29/2024 |