How do I map a char property using the Entity Framework 4.1 “code only” fluent API?
I have an object that has a char property: public class Product { public char Code { get; set; } } Entity Framework doesn't seem to be able to map chars (this field is missing from the database when I create the database schema from my model objects). Is there anyway I can map the char (e.g. to a string) using the fluent API? I don't want to change the model objects as they are part of a legacy shared library. Ladislav Mrnka Char is not valid primitive type for entity framework = entity framework doesn't map it. If you check CSDL reference you will see list of valid types ( char is not among