Map a property in the entity framework to a different type

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-23T18:36:04Z Indexed on 2010/04/30 17:07 UTC
Read the original article Hit count: 153

I have a SQL Server 2008 database. I have a bunch of fields in TableA that are just strings that corresponds to booleans. So every value is either true or false. The edmx I generated using Entity Framework 4.0 has them as strings. This is technically correct but I would like to have them mapped as Booleans instead. Is this possible? If so how can I accomplish this?

Thanks much!

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about visual-studio-2010