I have a poorly written legacy database schema that I m working with via EF Code First. I m currently mapping POCO entities and would like to create an "Address" complex type and use this everywhere where street address information is stored. Unfortunately, not all of the address fields are named the same in the database (ie. one table might have "Address1" while another table will have "Street1" even though they refer to the same thing.
Is there a way to create custom mappings for a complex type based on a given entity? What does that mapping look like?