From 65bff5607b62f19434d989bfa8bd461e7c2c1e1e Mon Sep 17 00:00:00 2001 From: chaowlert Date: Sun, 28 May 2017 15:25:09 +0700 Subject: [PATCH] Update README.md --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ece95b12..21c4fa1f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ ![Mapster Icon](https://cloud.githubusercontent.com/assets/5763993/26522718/d16f3e42-4330-11e7-9b78-f8c7402624e7.png) ## Mapster - The Mapper of Your Domain +Writing mapping method is machine job. Do not waste your time, let Mapster do it. ### Get it ``` @@ -14,14 +15,12 @@ Mapster creates the destination object and maps values to it. var destObject = sourceObject.Adapt(); #### Mapping to an existing object - You make the object, Mapster maps to the object. TDestination destObject = new TDestination(); destObject = sourceObject.Adapt(destObject); #### Queryable Extensions - Mapster also provides extensions to map queryables. using (MyDbContext context = new MyDbContext()) @@ -38,3 +37,26 @@ Mapster also provides extensions to map queryables. }) .ToList(); } + +### Performance +Don't let other libraries slow you down, Mapster is at least twice faster! + +![image](https://cloud.githubusercontent.com/assets/5763993/26527206/bbde5490-43b8-11e7-8363-34644e5e709e.png) + +### What's new in 3.0 + +Debugging generated mapping function! +![image](https://cloud.githubusercontent.com/assets/5763993/26521773/180427b6-431b-11e7-9188-10c01fa5ba5c.png) + +Mapping your DTOs directly to EF6! +``` +var poco = dto.BuildAdapter() + .CreateEntityFromContext(db) + .AdaptToType(); +``` + +### Change logs +https://github.com/chaowlert/Mapster/releases + +### Usages +https://github.com/chaowlert/Mapster/wiki