VOOZH about

URL: https://www.nuget.org/packages/Fluxera.Extensions.Validation.DataAnnotations/

⇱ NuGet Gallery | Fluxera.Extensions.Validation.DataAnnotations 8.1.0




👁 Image
Fluxera.Extensions.Validation.DataAnnotations 8.1.0

Prefix Reserved
dotnet add package Fluxera.Extensions.Validation.DataAnnotations --version 8.1.0
 
 
NuGet\Install-Package Fluxera.Extensions.Validation.DataAnnotations -Version 8.1.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fluxera.Extensions.Validation.DataAnnotations" Version="8.1.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluxera.Extensions.Validation.DataAnnotations" Version="8.1.0" />
 
Directory.Packages.props
<PackageReference Include="Fluxera.Extensions.Validation.DataAnnotations" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fluxera.Extensions.Validation.DataAnnotations --version 8.1.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fluxera.Extensions.Validation.DataAnnotations, 8.1.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fluxera.Extensions.Validation.DataAnnotations@8.1.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fluxera.Extensions.Validation.DataAnnotations&version=8.1.0
 
Install as a Cake Addin
#tool nuget:?package=Fluxera.Extensions.Validation.DataAnnotations&version=8.1.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 Build Status

Fluxera.Extensions

A library that extends the Microsoft.Extensions.* libraries with custom functionality and also provices custom extensions.

Fluxera.Extensions.Caching

This extension contains Option classes for configuring a remote distributed cache server and several useful extension methods for the IDistributedCache service.

Fluxera.Extensions.Common

This extension contains several custom services:

  • IDateTimeOffsetProvider A service that provides mockable access to static DateTimeOffset.
  • IDateTimeProvider A service that provides mockable access to static DateTime.
  • IGuidGenerator A service to generate Guid using different generators.
  • IHashCalculator A service to calculate hashes from input values.
  • IJitterCalculator A service that adds entropy to any given number.
  • IPasswordGenerator A service that generates random passwords.
  • IRetryDelayCalculator A service that calculates retry delay with (truncated) binary exponential back-off.
  • IStringEncryptionService A service that can be used to simply encrypt/decrypt texts.

Fluxera.Extensions.DataManagement

This extension contains an infrastructure for inserting seed data into databases.

Fluxera.Extensions.DependencyInjection

This extension contains several additions to the dependency injection extension.

  • Decorator
    • Add decorators to services.
  • Named Services
    • Add named service implementations.
  • Lazy Services
    • Add Lazy<T> as open generic sevice type. Any service will be resolved lazily from it.
  • Object Accessor
    • Provides a way to access object instances from the IServiceCollection while still configuring services.

Fluxera.Extensions.Http

This extension provides a way to register named HttpClient services and several custom DelegatingHandler implementations.

public interface ITestHttpClientService : IHttpClientService
{
 Task<string> GetSomethingAsync();
}

public class TestHttpClientService : HttpClientServiceBase, ITestHttpClientService
{
 /// <inheritdoc />
 public TestHttpClientService(string name, HttpClient httpClient, RemoteService options)
 : base(name, httpClient, options)
 {
 }

 public async Task<string> GetSomethingAsync()
 {
 HttpResponseMessage response = await this.HttpClient.GetAsync("/");
 return await response.Content.ReadAsStringAsync();
 }
}

services.AddHttpClientService<ITestHttpClientService, TestHttpClientService>(
	context => new TestHttpClientService(context.Name, context.HttpClient, context.Options));

Fluxera.Extensions.Localization

This extension contains several extension methods IStringLocalizer service.

Fluxera.Extensions.OData

This extension provides a way to register named ODataClient services using Simple.OData.Client.

public interface ITestODataClientService : IODataClientService
{
}

public class TestODataClientService : ODataClientServiceBase<Person, string>, ITestODataClientService
{
 /// <inheritdoc />
 public TestODataClientService(string name, string collectionName, IODataClient oDataClient, RemoteService options)
 : base(name, collectionName, oDataClient, options)
 {
 }
}

services.AddODataClientService<ITestODataClientService, TestODataClientService>("People",
 context => new TestODataClientService(context.Name, context.CollectionName, context.ODataClient, context.Options));

Fluxera.Extensions.Validation

This extension provides an abstraction over validation frameworks. Any one framework can be used together with other ones. The validation results will merged by the extension.

At the moment System.ComponentModel.Annotations and FluentValidation is supported. One can configure the validators to use like this:

IServiceCollection services = new ServiceCollection();

services.AddValidation(builder =>
{
 builder
 .AddDataAnnotations()
 .AddFluentValidation(registration =>
 {
 registration.AddValidator<PersonValidator>();
 });
});

References

Steve Collins

Product Versions Compatible and additional computed target framework versions.
.NET net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 is compatible.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
8.1.0 2,350 4/18/2024
8.0.7 629 4/13/2024
8.0.6 311 4/13/2024
8.0.5 571 3/19/2024
8.0.4 1,372 2/22/2024
8.0.3 1,164 1/21/2024
8.0.2 2,358 1/4/2024
8.0.1 724 11/23/2023
8.0.0 920 11/15/2023
7.2.4 683 7/23/2023
7.2.3 301 7/20/2023
7.2.2 679 6/21/2023
7.2.1 733 4/29/2023
7.2.0 757 4/25/2023
7.1.3 1,694 4/13/2023
7.1.2 745 3/16/2023
7.1.1 1,134 2/27/2023
7.1.0 1,397 1/18/2023
7.0.5 1,394 12/22/2022
7.0.4 481 12/13/2022
Loading failed