You can always extend your classes by creating another definition of a partial class; most EF templates define objects as partial definitions only for people to easily extend them. You will want to do this if you are working with WPF or Silverlight, since most things are not directly related, you either have a boolean value, or you want to convert it to color, etc. Writing converters is slow and requires much more code, then just create new getters in your BusinessObjects.
We have been using EF 4.0 STE (Self Tracking Entities) for a while, and we are expanding most of them with our own partial definitions. We slightly modified the T4 template that STE creates to allow access to the constructor to custom define a partial class and other minor improvements.
David Rodrigues
source share