Info
Version: | 1.0.2 |
Author(s): | Pietro Carta |
Last Update: | Saturday, November 7, 2015 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/TheFluentificator |
Install
Install-Package TheFluentificator
dotnet add package TheFluentificator
paket add TheFluentificator
TheFluentificator Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
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.