FluentDataBuilder 1.1.20
See the version list below for details.
dotnet add package FluentDataBuilder --version 1.1.20
NuGet\Install-Package FluentDataBuilder -Version 1.1.20
<PackageReference Include="FluentDataBuilder" Version="1.1.20" />
paket add FluentDataBuilder --version 1.1.20
#r "nuget: FluentDataBuilder, 1.1.20"
// Install FluentDataBuilder as a Cake Addin
#addin nuget:?package=FluentDataBuilder&version=1.1.20
// Install FluentDataBuilder as a Cake Tool
#tool nuget:?package=FluentDataBuilder&version=1.1.20
FluentDataBuilder
A fluent data builder for json and xml
DataBuilder Output Libraries
FluentDataBuilder has some NuGet-Libraries to generate output:
System.Text.Json - FluentDataBuilder.Json
install the nuget FluentDataBuilder.Json
and follow the general DataBuilder steps. the following code is a sample for the initialization with System.Text.Json.
IDataBuilder builder = new DataBuilder();
<br />
...
<br />
JsonDocument jsonResult = builder.Build();
<br />
Newtonsoft.Json - FluentDataBuilder.NewtonsoftJson
install the nuget FluentDataBuilder.NewtonsoftJson
and follow the general DataBuilder steps. the following code is a sample for the initialization with Newtonsoft.Json.
IDataBuilder builder = new DataBuilder();
<br />
...
<br />
JObject jsonResult = builder.Build();
<br />
(coming soon) - FluentDataBuilder.Xml
How to create Data Objects
First you need to create an instance:
IDataBuilder builder = new DataBuilder();
<br />
Use the Add-Method to add data:
add simple properties
builder.Add("StringProperty", "a value");
<br />
builder.Add("NumericProperty", 12345);
<br />
builder.Add("BooleanProperty", true);
<br />
result (in json):
{
<br />
"StringProperty": "a value",
<br />
"NumericProperty": 12345,
<br />
"BooleanProperty": true
<br />
}
<br />
add arrays
builder.Add("ListProperty", new List<string> { "this", "is", "a", "test" });
<br />
builder.Add("ArrayProperty", new string[] { "this", "is", "a", "test" });
<br />
builder.Add("MixedListProperty", new List<object> { "value", 123, true, 456.78 });
<br />
result (in json):
{
<br />
"ListProperty":
<br />
[
<br />
"this",
<br />
"is",
<br />
"a",
<br />
"test"
<br />
],
<br />
"ArrayProperty":
<br />
[
<br />
"this",
<br />
"is",
<br />
"a",
<br />
"test"
<br />
],
<br />
"MixedListProperty":
<br />
[
<br />
"value",
<br />
123,
<br />
true,
<br />
456.78
<br />
]
<br />
}
<br />
add new object
builder.Add("ObjectProperty", new DataBuilder()
<br />
.Add("StringProperty", "another value")
<br />
.Add("NumericProperty", 67890)
<br />
.Add("BooleanProperty", false));
<br />
result (in json):
{
<br />
"ObjectProperty":
<br />
{
<br />
"StringProperty": "another value",
<br />
"NumericProperty": 67890,
<br />
"BooleanProperty": false
<br />
}
<br />
}
<br />
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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. |
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on FluentDataBuilder:
Package | Downloads |
---|---|
FluentDataBuilder.Json
fluent data builder for json (System.Text.Json) |
|
FluentDataBuilder.Xml
fluent data builder for xml |
|
FluentDataBuilder.NewtonsoftJson
fluent data builder for json (Newtonsoft.Json) |
|
FluentDataBuilder.Microsoft.Extensions.Configuration
fluent data builder for json and xml |
|
FluentDataBuilder.Yaml
fluent data builder for yaml |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.105 | 147 | 4/28/2024 |
1.2.104 | 502 | 12/24/2023 |
1.2.103 | 171 | 12/23/2023 |
1.2.102 | 89 | 12/23/2023 |
1.2.101 | 97 | 12/23/2023 |
1.2.84 | 118 | 12/6/2023 |
1.2.83 | 240 | 12/6/2023 |
1.2.82 | 153 | 12/6/2023 |
1.2.77 | 111 | 11/18/2023 |
1.2.75 | 86 | 11/17/2023 |
1.2.74 | 327 | 11/17/2023 |
1.2.73 | 150 | 11/17/2023 |
1.1.69 | 168 | 9/28/2023 |
1.1.68 | 222 | 9/28/2023 |
1.1.67 | 151 | 9/28/2023 |
1.1.66 | 148 | 9/27/2023 |
1.1.65 | 151 | 9/27/2023 |
1.1.64 | 152 | 9/27/2023 |
1.1.53 | 95 | 9/17/2023 |
1.1.52 | 249 | 9/17/2023 |
1.1.51 | 138 | 9/17/2023 |
1.1.50 | 86 | 9/17/2023 |
1.1.49 | 166 | 9/17/2023 |
1.1.46 | 148 | 9/17/2023 |
1.1.45 | 121 | 9/17/2023 |
1.1.44 | 131 | 9/17/2023 |
1.1.36 | 162 | 9/6/2023 |
1.1.35 | 169 | 9/6/2023 |
1.1.34 | 171 | 9/6/2023 |
1.1.33 | 147 | 9/5/2023 |
1.1.32 | 110 | 9/5/2023 |
1.1.31 | 214 | 9/5/2023 |
1.1.20 | 312 | 8/11/2023 |
1.1.15 | 177 | 8/3/2023 |
1.1.13 | 195 | 8/2/2023 |
1.1.10 | 131 | 8/2/2023 |
1.1.0 | 183 | 8/2/2023 |
1.0.0 | 129 | 8/1/2023 |