MKS.Prepare 3.0.4

dotnet add package MKS.Prepare --version 3.0.4
                    
NuGet\Install-Package MKS.Prepare -Version 3.0.4
                    
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="MKS.Prepare" Version="3.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MKS.Prepare" Version="3.0.4" />
                    
Directory.Packages.props
<PackageReference Include="MKS.Prepare" />
                    
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 MKS.Prepare --version 3.0.4
                    
#r "nuget: MKS.Prepare, 3.0.4"
                    
#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 MKS.Prepare@3.0.4
                    
#: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=MKS.Prepare&version=3.0.4
                    
Install as a Cake Addin
#tool nuget:?package=MKS.Prepare&version=3.0.4
                    
Install as a Cake Tool

A fluent model preparation library similar to FluentValidation, designed for cleaning and preparing model data with configurable rules.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 Downloads Last Updated
3.0.4 292 12/12/2025
3.0.3 511 12/10/2025
3.0.2 493 12/10/2025
3.0.1 498 12/10/2025
3.0.0 503 12/10/2025
1.1.0 998 8/11/2025
1.0.0 339 8/11/2025

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