I want to create the first EF 4.1 Code models from an existing SQL database schema, and I wonder if it is possible to do some kind of transformation of these properties.
For example, I have an existing table "Foo" that has this field:
isTrue char(1) 'valid values are "Y" or "N"
In my first EF 4.1 Code model, I want to convert this field to a boolean type, for example:
public class Foo
{
public bool isTrue { get; set; }
}
Is this possible in EF 4.1 Code First by extending the DBContext or adding additional code to the model or EntityTypeConfiguration <> sub-class? If so, can someone point me to a link or some documentation on how to do this? Refactoring database fields is currently not possible.