MKS.Prepare
3.0.4
dotnet add package MKS.Prepare --version 3.0.4
NuGet\Install-Package MKS.Prepare -Version 3.0.4
<PackageReference Include="MKS.Prepare" Version="3.0.4" />
<PackageVersion Include="MKS.Prepare" Version="3.0.4" />
<PackageReference Include="MKS.Prepare" />
paket add MKS.Prepare --version 3.0.4
#r "nuget: MKS.Prepare, 3.0.4"
#:package MKS.Prepare@3.0.4
#addin nuget:?package=MKS.Prepare&version=3.0.4
#tool nuget:?package=MKS.Prepare&version=3.0.4
A fluent model preparation library similar to FluentValidation, designed for cleaning and preparing model data with configurable rules.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
NuGet packages (2)
Showing the top 2 NuGet packages that depend on MKS.Prepare:
| Package | Downloads |
|---|---|
|
MKS.Prepare.CQRS
MediatR integration for MKS.Prepare library, providing automatic model preparation behaviors for CQRS commands and queries with configurable preparation rules. |
|
|
MKS.Prepare.AspNetCore
ASP.NET Core integration for MKS.Prepare library. Provides automatic model preparation through action filters and middleware. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version 3.0.4: Minor update and improvements.
Version 3.0.3: Minor update and improvements.
Version 3.0.2: Fixed support for nested object properties in property selectors.
- Fixed ArgumentException when accessing nested properties (e.g., x => x.NestedObject.Property)
- Added proper handling of MemberExpression chains for nested property access
- Improved expression tree processing with ParameterReplacer for nested properties
Version 3.0.1: Fixed TrimAllProperties() method exception when processing entire model.
- Fixed ArgumentException in PropertyPreparationRule when using model => model expression
- Added ModelPreparationRule class for operations on entire model
Version 3.0.0: Migrated to .NET Standard 2.0 for maximum compatibility.
Updated Microsoft.Extensions.DependencyInjection.Abstractions to 3.1.20.
Version 1.1.0: Major feature update with advanced preparation capabilities.
- TrimAllProperties() method for recursive string trimming across nested objects
- Include() method for reusing preparation configurations (similar to FluentValidation)
- Collection support with EmptyIfNull(), NullIfEmpty(), RemoveNulls(), RemoveDuplicates(), LimitTo()
- List-specific operations including Sort() with custom comparisons
- DateTime preparation with ToUtc(), ToLocalTime(), ToDateOnly(), DefaultIfMinValue()
- Numeric preparation with Clamp() and DefaultIfZero() methods
- Enhanced string operations: Truncate(), PadToLength(), Replace(), RemoveCharacters(), DefaultIfEmpty()
- Improved reflection utilities for deep object processing
- Better type-specific preparers for DateTime, numeric types, and collections