CommonNetFuncs.SubsetModelBinder 3.5.0

dotnet add package CommonNetFuncs.SubsetModelBinder --version 3.5.0
                    
NuGet\Install-Package CommonNetFuncs.SubsetModelBinder -Version 3.5.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="CommonNetFuncs.SubsetModelBinder" Version="3.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.SubsetModelBinder" Version="3.5.0" />
                    
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.5.0
                    
#r "nuget: CommonNetFuncs.SubsetModelBinder, 3.5.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.
#addin nuget:?package=CommonNetFuncs.SubsetModelBinder&version=3.5.0
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.SubsetModelBinder&version=3.5.0
                    
Install as a Cake Tool

CommonNetFuncs.SubsetModelBinder

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
3.5.0 24 7/7/2025
3.4.23 127 6/26/2025
3.4.21 123 6/26/2025
3.4.20 119 6/25/2025
3.4.18 132 6/23/2025
3.4.2 147 6/2/2025
3.4.1 83 5/30/2025
3.4.0 86 5/30/2025
3.3.11 138 5/19/2025
3.3.10 229 5/13/2025
3.3.0 165 4/29/2025
3.2.22 236 3/12/2025
3.2.16 111 2/25/2025
3.2.13 116 2/13/2025
3.2.0 118 12/19/2024
3.1.0 136 12/6/2024
3.0.1 120 12/4/2024
3.0.0 130 12/3/2024
2.1.3 113 12/3/2024
2.1.0 102 12/2/2024
2.0.5 112 11/26/2024
2.0.2 107 11/18/2024
2.0.1 114 11/15/2024
2.0.0 103 11/14/2024
1.0.47 118 11/14/2024
1.0.46 115 11/13/2024
1.0.45 126 11/12/2024
1.0.43 112 11/12/2024
1.0.42 142 11/12/2024
1.0.40 124 11/12/2024
1.0.38 115 11/5/2024
1.0.37 119 11/4/2024
1.0.36 142 11/1/2024
1.0.33 124 10/31/2024 1.0.33 is deprecated because it has critical bugs.
1.0.32 127 10/31/2024 1.0.32 is deprecated because it has critical bugs.
1.0.31 136 10/31/2024 1.0.31 is deprecated because it has critical bugs.
1.0.28 135 10/25/2024 1.0.28 is deprecated because it has critical bugs.
1.0.26 182 10/18/2024 1.0.26 is deprecated because it has critical bugs.
1.0.25 125 10/17/2024 1.0.25 is deprecated because it has critical bugs.
1.0.24 117 10/17/2024 1.0.24 is deprecated because it has critical bugs.
1.0.18 149 10/8/2024 1.0.18 is deprecated because it has critical bugs.
1.0.17 133 9/27/2024 1.0.17 is deprecated because it has critical bugs.
1.0.16 129 9/27/2024 1.0.16 is deprecated because it has critical bugs.
1.0.14 140 9/23/2024 1.0.14 is deprecated because it has critical bugs.
1.0.13 148 9/18/2024 1.0.13 is deprecated because it has critical bugs.
1.0.11 159 9/18/2024 1.0.11 is deprecated because it has critical bugs.
1.0.10 158 9/11/2024 1.0.10 is deprecated because it has critical bugs.
1.0.9 167 9/11/2024 1.0.9 is deprecated because it has critical bugs.
1.0.8 148 9/11/2024 1.0.8 is deprecated because it has critical bugs.
1.0.7 186 9/11/2024 1.0.7 is deprecated because it has critical bugs.
1.0.1 158 9/4/2024 1.0.1 is deprecated because it has critical bugs.
1.0.0 154 9/2/2024 1.0.0 is deprecated because it has critical bugs.
0.0.10 105 11/13/2024
0.0.9 108 11/13/2024
0.0.8 104 11/13/2024
0.0.7 113 11/13/2024
0.0.4 129 11/13/2024
0.0.3 105 11/13/2024
0.0.2 105 11/13/2024
0.0.1 115 11/13/2024