TheFluentificator 1.0.2

dotnet add package TheFluentificator --version 1.0.2
NuGet\Install-Package TheFluentificator -Version 1.0.2
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="TheFluentificator" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TheFluentificator --version 1.0.2
#r "nuget: TheFluentificator, 1.0.2"
#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 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
1.0.2 1,596 11/7/2015
1.0.1 1,353 10/31/2015

Just add this reference and then you can use Fluent objects