CraftersCloud.Core
1.1.0
See the version list below for details.
dotnet add package CraftersCloud.Core --version 1.1.0
NuGet\Install-Package CraftersCloud.Core -Version 1.1.0
<PackageReference Include="CraftersCloud.Core" Version="1.1.0" />
paket add CraftersCloud.Core --version 1.1.0
#r "nuget: CraftersCloud.Core, 1.1.0"
// Install CraftersCloud.Core as a Cake Addin #addin nuget:?package=CraftersCloud.Core&version=1.1.0 // Install CraftersCloud.Core as a Cake Tool #tool nuget:?package=CraftersCloud.Core&version=1.1.0
CraftersCloud Core
CraftersCloud Core is a set of .NET libraries that provides infrastructure and utilities for building applications with Minimal Api, Entity Framework and MediatR.
It includes features such as domain event handling, transaction management, smart enums, swagger, repository implementations, health-checks, authentication/authorization, unit testing and more.
Features
AspNetCore
- Minimal Api
- Authorization
- Error handling
- Validation
Core
- Domain events
- Entities, Repositories, Unit of work
- Paging
- Command/Queries (CQRS)
- Entities
- Results
- StronglyTypedIds
- Various utilities and extensions
Core.Mediatr
- Mediatr integration (e.g. Validation, Logging)
Core.SourceGenerator
- Source generators for the Core library (e.g. StronglyTypedIds)
EntityFramework
- Seeding
- IQueryable extensions
EntityFramework.Infrastructure
- MediatR pipeline for the transaction management
- Unit of work implementation
- Entity framework repository implementation
- MediatR pipeline for the publishing of the domain events
EventBus
- TBD
HealthChecks
- HealthChecks Authorization
- HealthChecks registration extensions
Infrastructure
- Common infrastructure utilities
- Default TimeProvider implementation
IntegrationEvents
- Support for the integration events
SmartEnums
- Provides support for Smart enums (based on Ardalis.SmartEnum library)
SmartEnums.EntityFramework
- Provides support for persisting smart enums with Entity Framework
SmartEnums.Swagger
- Provides support for generating Swagger documentation for smart enums
SmartEnums.SystemTextJson
- Provides support for (de)serialization of SmartEnums
Swagger
- NSwag generation utilities
Tests.Shared
- Shared classes for tests
Getting Started
Prerequisites
- .NET 9.0 SDK
- Visual Studio or JetBrains Rider
Installation
To install the library, add any of the following packages starting with "CraftersCloud.Core" to your project:
dotnet add package CraftersCloud.Core
or
dotnet add package CraftersCloud.AspNetCore
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. |
-
net9.0
- FluentValidation (>= 11.11.0)
- JetBrains.Annotations (>= 2024.3.0)
- MediatR (>= 12.4.1)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.1)
- OneOf (>= 3.0.271)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on CraftersCloud.Core:
Package | Downloads |
---|---|
CraftersCloud.Core.SmartEnums
Core SmartEnums |
|
CraftersCloud.Core.EntityFramework
EntityFramework Core |
|
CraftersCloud.Core.MediatR
Core MediatR |
|
CraftersCloud.Core.Infrastructure
Core for the infrastructure projects |
|
CraftersCloud.Core.HealthChecks
HealthChecks Building Block |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0-preview.1 | 26 | 1/17/2025 |
2.0.0-pre.1 | 31 | 1/17/2025 |
1.1.1 | 73 | 1/15/2025 |
1.1.0 | 79 | 1/15/2025 |
1.0.35-alpha.0.15 | 26 | 1/15/2025 |
1.0.35-alpha.0.13 | 30 | 1/15/2025 |
1.0.34 | 46 | 1/14/2025 |
1.0.33 | 42 | 1/14/2025 |
1.0.32 | 113 | 1/13/2025 |
1.0.30 | 94 | 1/13/2025 |
1.0.28 | 139 | 1/3/2025 |
1.0.27 | 194 | 1/3/2025 |
1.0.26-alpha.0.1 | 71 | 1/3/2025 |
1.0.25 | 150 | 1/3/2025 |
1.0.25-alpha.0.1 | 67 | 1/3/2025 |
1.0.23 | 154 | 1/3/2025 |
1.0.23-alpha.0.1 | 65 | 1/3/2025 |
1.0.22 | 158 | 1/3/2025 |
1.0.22-alpha.0.1 | 70 | 1/3/2025 |
1.0.21 | 157 | 1/3/2025 |
1.0.21-alpha.0.9 | 70 | 1/3/2025 |
1.0.21-alpha.0.8 | 48 | 1/2/2025 |
1.0.21-alpha.0.7 | 52 | 12/16/2024 |
1.0.21-alpha.0.6 | 55 | 11/22/2024 |
1.0.21-alpha.0.4 | 50 | 11/22/2024 |
1.0.20 | 153 | 11/22/2024 |
1.0.20-alpha.0.4 | 49 | 11/22/2024 |
1.0.20-alpha.0.1 | 47 | 11/22/2024 |
1.0.19 | 140 | 11/17/2024 |
1.0.18 | 155 | 11/15/2024 |
1.0.18-alpha.0.1 | 43 | 11/15/2024 |
1.0.16 | 182 | 11/8/2024 |
1.0.16-alpha.0.1 | 54 | 11/8/2024 |
1.0.15 | 179 | 11/8/2024 |
1.0.15-alpha.0.1 | 47 | 11/8/2024 |
1.0.14 | 173 | 11/8/2024 |
1.0.14-alpha.0.3 | 49 | 11/8/2024 |
1.0.14-alpha.0.2 | 45 | 11/8/2024 |
1.0.13 | 334 | 11/4/2024 |
1.0.13-alpha.0.1 | 49 | 11/4/2024 |
1.0.12 | 227 | 10/22/2024 |
1.0.12-alpha.0.1 | 56 | 10/22/2024 |
1.0.11 | 227 | 10/18/2024 |
1.0.11-alpha.0.1 | 95 | 10/18/2024 |
1.0.10 | 180 | 10/17/2024 |
1.0.9-alpha.0.3 | 45 | 10/17/2024 |
1.0.9-alpha.0.2 | 45 | 10/17/2024 |
1.0.9-alpha.0.1 | 47 | 10/17/2024 |
1.0.8 | 175 | 10/17/2024 |
1.0.7 | 182 | 10/17/2024 |
1.0.7-alpha.0.3 | 47 | 10/17/2024 |
1.0.7-alpha.0.1 | 55 | 10/4/2024 |
1.0.6 | 209 | 9/20/2024 |
1.0.6-alpha.0.1 | 59 | 9/20/2024 |
1.0.5 | 248 | 9/20/2024 |
1.0.5-alpha.0.1 | 54 | 9/20/2024 |
1.0.4 | 196 | 9/20/2024 |
1.0.4-alpha.0.3 | 58 | 9/20/2024 |
1.0.4-alpha.0.2 | 54 | 9/20/2024 |
1.0.4-alpha.0.1 | 51 | 9/20/2024 |
1.0.3 | 210 | 9/20/2024 |
1.0.3-alpha.0.1 | 51 | 9/20/2024 |
1.0.2 | 228 | 9/20/2024 |
1.0.2-alpha.0.2 | 52 | 9/20/2024 |
1.0.1 | 136 | 9/20/2024 |
1.0.0 | 155 | 9/20/2024 |
0.0.2-alpha.0.2 | 56 | 9/20/2024 |