This project is read-only.

Coffee & Enterprise Framework

More often than not you will have Domain models that are auto-generated by some ORM tool that will not be exactly the same as your View Model that you use to bind against your survey definition.

The problem is then how to project the data to and from from your Domain model and your View Model during the Mapper Load and Update methods.

The Coffee.Utils namespace contains an extension method CopyTo that attaches to the object class that basically allows all objects to project the values of their properties onto a receiving object as long as the property names match.

This function is also planned to accept some sort of property mapping delegate to handle special cases where a 1:1 mapping is simply not possible.

Last edited Jul 5, 2012 at 8:19 AM by RupertAvery, version 4


No comments yet.