FluentBuilder 0.2.1
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 FluentBuilder --version 0.2.1
NuGet\Install-Package FluentBuilder -Version 0.2.1
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="FluentBuilder" Version="0.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentBuilder --version 0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FluentBuilder, 0.2.1"
#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.
// Install FluentBuilder as a Cake Addin
#addin nuget:?package=FluentBuilder&version=0.2.1
// Install FluentBuilder as a Cake Tool
#tool nuget:?package=FluentBuilder&version=0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Usage
Annotate
Annotate a class with [FluentBuilder.AutoGenerateBuilder]
to indicate that a FluentBuilder should be generated for this class:
[FluentBuilder.AutoGenerateBuilder]
public class User
{
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime? Date { get; set; }
}
Use FluentBuilder
using System;
namespace Test
{
class Program
{
static void Main(string[] args)
{
var user = new FluentBuilder.UserBuilder()
.WithFirstName("Test")
.WithLastName("User")
.Build();
Console.WriteLine($"{user.FirstName} {user.LastName}");
}
}
}
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on FluentBuilder:
Repository | Stars |
---|---|
WireMock-Net/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
|
|
StefH/FluentBuilder
A project which uses Source Generation to create a FluentBuilder for a specified model or DTO
|
Version | Downloads | Last updated | |
---|---|---|---|
0.7.1 | 78 | 3/14/2023 | |
0.7.1-preview-02 | 52 | 3/2/2023 | |
0.7.1-preview-01 | 51 | 2/25/2023 | |
0.7.0 | 3,230 | 9/20/2022 | |
0.7.0-preview-01 | 73 | 9/16/2022 | |
0.6.0 | 308 | 8/20/2022 | |
0.5.1 | 1,454 | 7/28/2022 | |
0.5.0 | 342 | 7/13/2022 | |
0.4.9 | 3,837 | 6/25/2022 | |
0.4.8 | 300 | 6/21/2022 | |
0.4.7 | 292 | 6/4/2022 | |
0.4.6 | 352 | 5/20/2022 | |
0.4.5 | 304 | 5/16/2022 | |
0.4.4 | 911 | 4/27/2022 | |
0.4.2 | 338 | 4/3/2022 | |
0.4.1 | 815 | 2/18/2022 | |
0.4.0 | 290 | 2/18/2022 | |
0.3.3 | 302 | 2/16/2022 | |
0.3.2 | 298 | 2/16/2022 | |
0.3.1 | 294 | 2/14/2022 | |
0.3.0 | 290 | 2/12/2022 | |
0.2.5 | 296 | 2/8/2022 | |
0.2.4 | 314 | 2/6/2022 | |
0.2.3 | 300 | 2/1/2022 | |
0.2.2 | 308 | 1/31/2022 | |
0.2.1 | 312 | 1/30/2022 | |
0.2.0 | 337 | 1/30/2022 | |
0.1.2 | 306 | 1/20/2022 | |
0.1.1 | 298 | 1/15/2022 | |
0.1.0 | 302 | 1/13/2022 | |
0.0.11 | 1,300 | 8/10/2021 | |
0.0.11-preview-01 | 166 | 8/10/2021 | |
0.0.10 | 212 | 8/8/2021 | |
0.0.10-preview-03 | 140 | 8/8/2021 | |
0.0.10-preview-02 | 162 | 8/7/2021 | |
0.0.10-preview-01 | 162 | 8/7/2021 | |
0.0.9 | 313 | 8/7/2021 | |
0.0.8 | 221 | 8/6/2021 | |
0.0.7 | 356 | 8/5/2021 | |
0.0.6 | 222 | 8/5/2021 | |
0.0.5 | 272 | 8/5/2021 | |
0.0.4 | 8,210 | 7/21/2021 | |
0.0.3 | 234 | 7/19/2021 | |
0.0.2 | 227 | 7/19/2021 | |
0.0.1 | 247 | 7/18/2021 |
# 0.2.1 (30 January 2022)
- #12 Add support for Array and IEnumerable [enhancement]
- #13 Skip Dictionary for IEnumerableBuilder logic [bug]
The full release notes can be found here: https://github.com/StefH/FluentBuilder/blob/main/ReleaseNotes.md