GenericServices.StatusGeneric
1.1.0
Install-Package GenericServices.StatusGeneric -Version 1.1.0
dotnet add package GenericServices.StatusGeneric --version 1.1.0
<PackageReference Include="GenericServices.StatusGeneric" Version="1.1.0" />
paket add GenericServices.StatusGeneric --version 1.1.0
#r "nuget: GenericServices.StatusGeneric, 1.1.0"
// Install GenericServices.StatusGeneric as a Cake Addin
#addin nuget:?package=GenericServices.StatusGeneric&version=1.1.0
// Install GenericServices.StatusGeneric as a Cake Tool
#tool nuget:?package=GenericServices.StatusGeneric&version=1.1.0
GenericServices.StatusGeneric
This provides a way to return the status of a method/class that you run. It contains two main things
- A IReadOnlyList of
Errors
, which may be empty. If the list is empty, then theIsValid
property of the status will be true. - A
Message
which can be set by you (default value is "Success"), but if it has any errors theMessage
returns "Failed with nn errors". - The
IStatusGeneric<T>
version will return aResult
which you can set, but returnsdefault(T)
if there are errors.
There are various methods to add errors to the Errors
list, and a way to combine statuses.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- System.ComponentModel.Annotations (>= 4.6.0)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on GenericServices.StatusGeneric:
Package | Downloads |
---|---|
EfCore.GenericServices
Library to help you quickly code Create, Read, Update and Delete (CRUD) accesses in web/mobile/desktop applications using Entity Framework Core. |
|
EfCore.GenericBizRunner
Library to run business logic when using Entity Framework Core for database accesses |
|
EfCore.GenericServices.AspNetCore
A support library to the EfCore.GenericServices and EfCore.GenericBizRunner libraries. It converts IStatusGeneric into ASP.NET Core's ModelState or Web API response |
|
EfCore.GenericEventRunner
A library to provide domain event handling to EF Core. |
|
EfCore.SoftDeleteServices
Services to provide simple soft delete and cascade soft delete in EF Core. |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on GenericServices.StatusGeneric:
Repository | Stars |
---|---|
JonPSmith/EfCore.GenericServices
A library to help you quickly code CRUD accesses for a web/mobile/desktop application using EF Core.
|
|
JonPSmith/AuthPermissions.AspNetCore
This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
|
|
JonPSmith/EfCore.TestSupport
Tools for helping in unit testing applications that use Entity Framework Core
|
|
JonPSmith/EfCoreinAction-SecondEdition
Supporting repo to go with book "Entity Framework Core in Action", second edition
|
|
JonPSmith/EfCore.GenericBizRunner
Library to run business logic when using Entity Framework Core for database accesses
|
- Updated to provide needed features for GenericBizRunner
- Added some interfaces and made Message read/write