TheFluentificator 1.0.2
dotnet add package TheFluentificator --version 1.0.2
NuGet\Install-Package TheFluentificator -Version 1.0.2
<PackageReference Include="TheFluentificator" Version="1.0.2" />
paket add TheFluentificator --version 1.0.2
#r "nuget: TheFluentificator, 1.0.2"
// Install TheFluentificator as a Cake Addin #addin nuget:?package=TheFluentificator&version=1.0.2 // Install TheFluentificator as a Cake Tool #tool nuget:?package=TheFluentificator&version=1.0.2
The Fluentificator allows you to declare object and assign them values in a Fluent way
Just include TheFluentificator namespace in your class
and you're ready.
Wherever you need to create objects, or edit objects, you now have the With extension method, and you can call it in chain.
Example:
public class Test {
String testString {get; set;}
}
var test = new Test().With(m => m.testString = "Awesome");
Now The Fluentificator allows you to map different objects!
Example:
var dto = entity.Map<DtoClass>()
.With(m => m.Nested = entity.Nested.Map<NestedDto>());
Map is created with property with same name and same type.
Nested class has to be mapped separately with the With syntax as shown in the example.
You can also say TheFluentificator to not map a property with the Attribute [NotMapped]
and that's all.
easy right? :)
I love the chaining fluent construction, and that's why I made this package.
Have fun using it and feel free to email me for every suggestion you may have
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Just add this reference and then you can use Fluent objects