FluentBuilder 0.0.10-preview-01
See the version list below for details.
dotnet add package FluentBuilder --version 0.0.10-preview-01
NuGet\Install-Package FluentBuilder -Version 0.0.10-preview-01
<PackageReference Include="FluentBuilder" Version="0.0.10-preview-01" />
<PackageVersion Include="FluentBuilder" Version="0.0.10-preview-01" />
<PackageReference Include="FluentBuilder" />
paket add FluentBuilder --version 0.0.10-preview-01
#r "nuget: FluentBuilder, 0.0.10-preview-01"
#:package FluentBuilder@0.0.10-preview-01
#addin nuget:?package=FluentBuilder&version=0.0.10-preview-01&prerelease
#tool nuget:?package=FluentBuilder&version=0.0.10-preview-01&prerelease
Info
A project which uses Source Generation to create a FluentBuilder for a specified model or DTO.
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}");
}
}
}
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 (1)
Showing the top 1 popular GitHub repositories that depend on FluentBuilder:
Repository | Stars |
---|---|
wiremock/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.
|
Version | Downloads | Last Updated | |
---|---|---|---|
0.11.0-preview-02 | 145 | 6/24/2025 | |
0.11.0-preview-01 | 136 | 6/23/2025 | |
0.10.0.3-preview-01 | 52 | 7/15/2025 | |
0.10.0.2 | 633 | 6/26/2025 | |
0.10.0.1 | 1,580 | 6/13/2025 | |
0.10.0 | 15,240 | 10/19/2024 | |
0.9.2 | 6,400 | 8/30/2024 | |
0.9.1 | 439 | 8/24/2024 | |
0.9.0 | 36,116 | 4/8/2023 | |
0.9.0-preview-01 | 184 | 4/6/2023 | |
0.8.0 | 482 | 4/3/2023 | |
0.7.1 | 471 | 3/14/2023 | |
0.7.1-preview-02 | 244 | 3/2/2023 | |
0.7.1-preview-01 | 232 | 2/25/2023 | |
0.7.0 | 9,936 | 9/20/2022 | |
0.7.0-preview-01 | 209 | 9/16/2022 | |
0.6.0 | 525 | 8/20/2022 | |
0.5.1 | 1,954 | 7/28/2022 | |
0.5.0 | 543 | 7/13/2022 | |
0.4.9 | 4,726 | 6/25/2022 | |
0.4.8 | 493 | 6/21/2022 | |
0.4.7 | 488 | 6/4/2022 | |
0.4.6 | 574 | 5/20/2022 | |
0.4.5 | 502 | 5/16/2022 | |
0.4.4 | 1,122 | 4/27/2022 | |
0.4.2 | 546 | 4/3/2022 | |
0.4.1 | 1,022 | 2/18/2022 | |
0.4.0 | 498 | 2/18/2022 | |
0.3.3 | 508 | 2/16/2022 | |
0.3.2 | 514 | 2/16/2022 | |
0.3.1 | 510 | 2/14/2022 | |
0.3.0 | 495 | 2/12/2022 | |
0.2.5 | 509 | 2/8/2022 | |
0.2.4 | 562 | 2/6/2022 | |
0.2.3 | 513 | 2/1/2022 | |
0.2.2 | 536 | 1/31/2022 | |
0.2.1 | 528 | 1/30/2022 | |
0.2.0 | 600 | 1/30/2022 | |
0.1.2 | 511 | 1/20/2022 | |
0.1.1 | 494 | 1/15/2022 | |
0.1.0 | 508 | 1/13/2022 | |
0.0.11 | 1,499 | 8/10/2021 | |
0.0.11-preview-01 | 282 | 8/10/2021 | |
0.0.10 | 382 | 8/8/2021 | |
0.0.10-preview-03 | 263 | 8/8/2021 | |
0.0.10-preview-02 | 295 | 8/7/2021 | |
0.0.10-preview-01 | 291 | 8/7/2021 | |
0.0.9 | 489 | 8/7/2021 | |
0.0.8 | 401 | 8/6/2021 | |
0.0.7 | 531 | 8/5/2021 | |
0.0.6 | 391 | 8/5/2021 | |
0.0.5 | 444 | 8/5/2021 | |
0.0.4 | 13,483 | 7/21/2021 | |
0.0.3 | 406 | 7/19/2021 | |
0.0.2 | 396 | 7/19/2021 | |
0.0.1 | 442 | 7/18/2021 |
# 0.0.8 (06 August 2021)
- [#7](https://github.com/StefH/FluentBuilder/pull/7) - Add support for generics + update generated filename [enhancement] contributed by [StefH](https://github.com/StefH)
# 0.0.7 (05 August 2021)
- [#5](https://github.com/StefH/FluentBuilder/pull/5) - Add autogenerated header [enhancement] contributed by [StefH](https://github.com/StefH)
- [#6](https://github.com/StefH/FluentBuilder/pull/6) - Only emit #nullable when nullable is supported (>= LanguageVersion.CS… [enhancement] contributed by [StefH](https://github.com/StefH)
# 0.0.5 (05 August 2021)
- [#4](https://github.com/StefH/FluentBuilder/pull/4) - Add support for Action<builder> [enhancement] contributed by [StefH](https://github.com/StefH)
- [#3](https://github.com/StefH/FluentBuilder/issues/3) - Add WithProperty overloads that accepts the property's builder when available [enhancement]
# 0.0.4 (21 July 2021)
- [#2](https://github.com/StefH/FluentBuilder/pull/2) - Make project Unit-Testable [enhancement] contributed by [StefH](https://github.com/StefH)
# 0.0.2 (19 July 2021)
- [#1](https://github.com/StefH/FluentBuilder/pull/1) - Update Lazy constructor to fix issues with .NET 4.5 [bug] contributed by [StefH](https://github.com/StefH)