Codespirals.Base.Shared
1.1.1.26110
dotnet add package Codespirals.Base.Shared --version 1.1.1.26110
NuGet\Install-Package Codespirals.Base.Shared -Version 1.1.1.26110
<PackageReference Include="Codespirals.Base.Shared" Version="1.1.1.26110" />
<PackageVersion Include="Codespirals.Base.Shared" Version="1.1.1.26110" />
<PackageReference Include="Codespirals.Base.Shared" />
paket add Codespirals.Base.Shared --version 1.1.1.26110
#r "nuget: Codespirals.Base.Shared, 1.1.1.26110"
#:package Codespirals.Base.Shared@1.1.1.26110
#addin nuget:?package=Codespirals.Base.Shared&version=1.1.1.26110
#tool nuget:?package=Codespirals.Base.Shared&version=1.1.1.26110
Codespirals.Base
This package contains a set of interfaces, classes and helper functions at the basis of all Codespirals solutions and projects.
Main items
Identifiable
The IIdentifiable interface makes sure that identifiable items (basically any object) all have a common reference point, eliminating all guess work as to what the identifier is called on any given object.
interface IIdentifiable
{
string Id { get; }
}
Result Pattern
This library provides mostly guiding interfaces, however for the Result pattern we have the IResult interface (and variations) as well as a Result class for a basic implementation of the former.
This should be enough for most projects, though one can always just build their own class using the interfaces.
interface IResult<TErrorCode>
{
bool Success { get; }
TErrorCode? ErrorCode { get; }
string Error { get; }
}
Selectables
The ISelectableBase and the IIsEnum<TSelf> interfaces are made to provide a basis for quick, easy and most importantly unified, custom enums.
interface ISelectableBase
{
string Id { get; }
string Name { get; }
string Description { get; }
}
Filtering
The IFilterParameters and ISearchParameters interfaces enforce clear parameters to be used to filter a list by, as well as enable pagination (with IPagination).
Here too the library provides a basic implementation with the FilterParameters / SearchParameters classes, as these are enough for most use cases.
interface IFilterParameters
{
int Page { get; }
int Limit { get; }
string Sort { get; }
bool Ascending { get; }
}
| 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. 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. |
-
net9.0
- Microsoft.Extensions.Configuration.Abstractions (>= 9.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.11)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.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 |
|---|---|---|
| 1.1.1.26110 | 98 | 5/7/2026 |
| 1.1.0.26108 | 129 | 4/20/2026 |