GenericServices.StatusGeneric 1.1.0

A support library to provide a common status handling for my projects.

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" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GenericServices.StatusGeneric --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

GenericServices.StatusGeneric

This provides a way to return the status of a method/class that you run. It contains two main things

  1. A IReadOnlyList of Errors, which may be empty. If the list is empty, then the IsValid property of the status will be true.
  2. A Message which can be set by you (default value is "Success"), but if it has any errors the Message returns "Failed with nn errors".
  3. The IStatusGeneric&lt;T&gt; version will return a Result which you can set, but returns default(T) if there are errors.

There are various methods to add errors to the Errors list, and a way to combine statuses.

GenericServices.StatusGeneric

This provides a way to return the status of a method/class that you run. It contains two main things

  1. A IReadOnlyList of Errors, which may be empty. If the list is empty, then the IsValid property of the status will be true.
  2. A Message which can be set by you (default value is "Success"), but if it has any errors the Message returns "Failed with nn errors".
  3. The IStatusGeneric&lt;T&gt; version will return a Result which you can set, but returns default(T) if there are errors.

There are various methods to add errors to the Errors list, and a way to combine statuses.

Release Notes

- Updated to provide needed features for GenericBizRunner
     - Added some interfaces and made Message read/write

NuGet packages (6)

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.
GenericBizRunner
Library to run business logic

GitHub repositories (2)

Showing the top 2 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/EfCore.GenericBizRunner
Library to run business logic when using Entity Framework Core for database accesses

Version History

Version Downloads Last updated
1.1.0 25,910 1/25/2020
1.0.1 7,051 1/25/2020
1.0.0 1,520 11/27/2019