ModelWrapper 1.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ModelWrapper --version 1.1.0
NuGet\Install-Package ModelWrapper -Version 1.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="ModelWrapper" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ModelWrapper" Version="1.1.0" />
<PackageReference Include="ModelWrapper" />
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 ModelWrapper --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ModelWrapper, 1.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 ModelWrapper@1.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=ModelWrapper&version=1.1.0
#tool nuget:?package=ModelWrapper&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ModelWrapper - Current version 1.1.0
Model wrapper - Tool wich enrich the experience of data models manipulation in RestFul APIs for C# WebApi projects.
Usage
Model class:
public class PatchCustomerCommand : Wrap<Customer>, IRequest<PatchCustomerCommandResponse>
{
public PatchCustomerCommand()
{
KeyProperty(x => x.CustomerID);
SuppressProperty(x => x.RegistrationDate);
SuppressProperty(x => x.Orders);
}
}
Methods:
int categoryID = 12;
model.Project(x=>x.CategoryID = categoryID); //Sets the value into the internal object;
int categoryID = model.Project(x=>x.CategoryID); //Gets the value of the internal object;
Customer entity = model.Post(); //return a new instance of the entity.
model.Patch(entity); //Update the supplied properties on entity.
model.Put(entity); //Update all properties of the entity.
GitHub
Nuget
Package Manager
PM> Install-Package ModelWrapper -Version 1.1.0
.NET CLI
> dotnet add package ModelWrapper --version 1.1.0
Packet
> paket add ModelWrapper --version 1.1.0
| 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.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.1
- Microsoft.AspNetCore.Mvc (>= 2.1.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ModelWrapper:
| Package | Downloads |
|---|---|
|
BAYSOFT.Abstractions
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.10 | 220 | 10/27/2025 |
| 8.0.6.8 | 349 | 3/1/2025 |
| 8.0.6.7 | 207 | 2/15/2025 |
| 8.0.6.6 | 342 | 10/7/2024 |
| 8.0.6.5 | 204 | 10/6/2024 |
| 8.0.6.4 | 214 | 7/13/2024 |
| 8.0.6.3 | 196 | 7/11/2024 |
| 8.0.6.2 | 249 | 6/28/2024 |
| 8.0.6.1 | 272 | 6/23/2024 |
| 8.0.6 | 250 | 6/20/2024 |
| 8.0.3 | 269 | 6/18/2024 |
| 8.0.2 | 346 | 6/18/2024 |
| 8.0.1 | 219 | 6/11/2024 |
| 8.0.0 | 220 | 6/2/2024 |
| 7.0.0 | 222 | 6/2/2024 |
| 6.0.0 | 197 | 6/2/2024 |
| 5.0.0 | 197 | 6/2/2024 |
| 4.0.17 | 261 | 4/27/2024 |
| 4.0.16 | 267 | 4/25/2024 |
| 4.0.15 | 252 | 4/25/2024 |
| 4.0.14 | 228 | 4/25/2024 |
| 4.0.13 | 381 | 3/18/2024 |
| 4.0.12 | 267 | 2/22/2024 |
| 4.0.11 | 231 | 2/7/2024 |
| 4.0.10 | 293 | 2/3/2024 |
| 4.0.9 | 228 | 2/1/2024 |
| 4.0.8 | 452 | 12/12/2023 |
| 4.0.7 | 239 | 12/11/2023 |
| 4.0.6 | 256 | 11/28/2023 |
| 4.0.5 | 268 | 11/23/2023 |
| 4.0.4 | 276 | 11/18/2023 |
| 4.0.3 | 254 | 11/12/2023 |
| 4.0.2 | 455 | 9/2/2023 |
| 4.0.1 | 552 | 4/22/2023 |
| 4.0.0 | 639 | 3/25/2023 |
| 3.0.0 | 857 | 1/30/2022 |
| 3.0.0-beta | 349 | 11/19/2021 |
| 2.1.1 | 545 | 6/10/2021 |
| 2.1.0 | 1,405 | 1/18/2020 |
| 2.0.2 | 799 | 12/6/2019 |
| 2.0.1 | 748 | 12/4/2019 |
| 2.0.0 | 739 | 11/20/2019 |
| 1.1.0 | 895 | 3/22/2019 |
| 1.0.1 | 871 | 3/20/2019 |
| 1.0.0 | 822 | 3/20/2019 |
| 1.0.0-beta | 1,079 | 6/28/2018 |
Wrap<TModel, int> removed & Project implemented