CommonNetFuncs.SubsetModelBinder 3.8.18

There is a newer version of this package available.
See the version list below for details.
dotnet add package CommonNetFuncs.SubsetModelBinder --version 3.8.18
                    
NuGet\Install-Package CommonNetFuncs.SubsetModelBinder -Version 3.8.18
                    
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="CommonNetFuncs.SubsetModelBinder" Version="3.8.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.SubsetModelBinder" Version="3.8.18" />
                    
Directory.Packages.props
<PackageReference Include="CommonNetFuncs.SubsetModelBinder" />
                    
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 CommonNetFuncs.SubsetModelBinder --version 3.8.18
                    
#r "nuget: CommonNetFuncs.SubsetModelBinder, 3.8.18"
                    
#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 CommonNetFuncs.SubsetModelBinder@3.8.18
                    
#: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=CommonNetFuncs.SubsetModelBinder&version=3.8.18
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.SubsetModelBinder&version=3.8.18
                    
Install as a Cake Tool

CommonNetFuncs.SubsetModelBinder

License Build NuGet Version nuget

This project provides an attribute that forces a class to only contain properties that are also present in a in another parent class. This is useful for model binding scenarios where you want to restrict the properties that can be bound to a model without causing mapping issues when binding the subset model to the parent model (using FastMap for instance)

Contents


<details> <summary><h3>Usage Example</h3></summary>

public class Person
{
    public int Id { get; set; }
    public string Name { get; set; }
    public string Email { get; set; }
}

// This class will only allow properties that are also present in the Person class with the same name and optionally same type (type can be optionally be different)
[SubsetOf(typeof(Person))]
public class PersonSubset
{
    public int Id { get; set; }
    public string Name { get; set; }
}

[SubsetOf(typeof(Person))]
public class InvalidPersonSubset
{
    public int Id { get; set; }
    public string Name { get; set; }
    public string Mail { get; set; } // Throws compiler error because 'Mail' is not a property of the Person class
}

</details>

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

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
4.0.2 662 12/2/2025
4.0.1 185 11/27/2025
4.0.0 155 11/23/2025
3.8.20 554 12/1/2025
3.8.18 397 11/20/2025
3.8.16 381 11/17/2025
3.8.13 271 11/10/2025
3.8.4 190 10/9/2025
3.7.17 184 9/11/2025
3.7.16 179 9/11/2025
3.7.13 174 9/8/2025
3.7.0 341 8/18/2025
3.6.27 174 8/18/2025
3.6.26 198 8/14/2025
3.6.25 181 8/13/2025
3.6.24 183 8/12/2025
3.6.19 161 7/28/2025
3.6.18 394 7/25/2025
3.6.1 180 7/14/2025
3.6.0 161 7/11/2025
3.5.3 181 7/10/2025
3.5.0 203 7/7/2025
3.4.23 188 6/26/2025
3.4.21 172 6/26/2025
3.4.20 166 6/25/2025
3.4.18 197 6/23/2025
3.4.2 188 6/2/2025
3.4.1 125 5/30/2025
3.4.0 125 5/30/2025
3.3.11 183 5/19/2025
3.3.10 273 5/13/2025
3.3.0 205 4/29/2025
3.2.22 278 3/12/2025
3.2.16 152 2/25/2025
3.2.13 157 2/13/2025
3.2.0 158 12/19/2024
3.1.0 177 12/6/2024
3.0.1 170 12/4/2024
3.0.0 170 12/3/2024
2.1.3 167 12/3/2024
2.1.0 149 12/2/2024
2.0.5 152 11/26/2024
2.0.2 155 11/18/2024
2.0.1 155 11/15/2024
2.0.0 143 11/14/2024
1.0.47 161 11/14/2024
1.0.46 153 11/13/2024
1.0.45 175 11/12/2024
1.0.43 149 11/12/2024
1.0.42 187 11/12/2024
1.0.40 171 11/12/2024
1.0.38 156 11/5/2024
1.0.37 159 11/4/2024
1.0.36 192 11/1/2024
1.0.33 174 10/31/2024 1.0.33 is deprecated because it has critical bugs.
1.0.32 180 10/31/2024 1.0.32 is deprecated because it has critical bugs.
1.0.31 185 10/31/2024 1.0.31 is deprecated because it has critical bugs.
1.0.28 195 10/25/2024 1.0.28 is deprecated because it has critical bugs.
1.0.26 229 10/18/2024 1.0.26 is deprecated because it has critical bugs.
1.0.25 168 10/17/2024 1.0.25 is deprecated because it has critical bugs.
1.0.24 161 10/17/2024 1.0.24 is deprecated because it has critical bugs.
1.0.18 199 10/8/2024 1.0.18 is deprecated because it has critical bugs.
1.0.17 198 9/27/2024 1.0.17 is deprecated because it has critical bugs.
1.0.16 185 9/27/2024 1.0.16 is deprecated because it has critical bugs.
1.0.14 190 9/23/2024 1.0.14 is deprecated because it has critical bugs.
1.0.13 197 9/18/2024 1.0.13 is deprecated because it has critical bugs.
1.0.11 221 9/18/2024 1.0.11 is deprecated because it has critical bugs.
1.0.10 205 9/11/2024 1.0.10 is deprecated because it has critical bugs.
1.0.9 213 9/11/2024 1.0.9 is deprecated because it has critical bugs.
1.0.8 192 9/11/2024 1.0.8 is deprecated because it has critical bugs.
1.0.7 237 9/11/2024 1.0.7 is deprecated because it has critical bugs.
1.0.1 210 9/4/2024 1.0.1 is deprecated because it has critical bugs.
1.0.0 203 9/2/2024 1.0.0 is deprecated because it has critical bugs.
0.0.10 245 11/13/2024
0.0.9 247 11/13/2024
0.0.8 241 11/13/2024
0.0.7 246 11/13/2024
0.0.4 181 11/13/2024
0.0.3 147 11/13/2024
0.0.2 148 11/13/2024
0.0.1 254 11/13/2024