Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chaowlert authored May 28, 2017
1 parent 5b83bf7 commit 65bff56
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
Expand All @@ -14,14 +15,12 @@ Mapster creates the destination object and maps values to it.
var destObject = sourceObject.Adapt<TDestination>();

#### 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())
Expand All @@ -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<DomainPoco>();
```

### Change logs
https://github.com/chaowlert/Mapster/releases

### Usages
https://github.com/chaowlert/Mapster/wiki

0 comments on commit 65bff56

Please sign in to comment.