Skip to content

Demonstrates why we'd use AutoMapper instead of manually copying property values

Notifications You must be signed in to change notification settings

craigeddy/AutoMapperSamples

Repository files navigation

AutoMapperSamples

Demonstrates why we'd use AutoMapper instead of manually copying property values: less code and easier maintenance.

Files

tests.cs contains several unit tests that demonstrate the power of AutoMapper. Some are designed to fail to make the point. 😄

object.cs contains the objects under test. AutoMapperSamples.Destinations.FlatStanley is our flattened object. The AutoMapperSamples.Sources namespace contains the hierarchical objects which let us have an object-oriented Stanley.

configurators.cs contains a method to construct the AutoMapper configuration.

utilities.cs contains a factor method which constructs a FlatStanley by manually copying property values.

About

Demonstrates why we'd use AutoMapper instead of manually copying property values

Topics

Resources

Stars

Watchers

Forks

Languages