Entity Framework 4.0 Mapping POCOS with different property names from db fields names

Posted by ace on Stack Overflow See other posts from Stack Overflow or by ace
Published on 2010-06-10T22:49:48Z Indexed on 2010/06/10 22:52 UTC
Read the original article Hit count: 262

Filed under:
|
|

Hi, I'm a newbie to ADO.Net Entity framework 4. I have a set of pocos which I need to map to a legacy database. The problem is that the db field names are different to the poco property names. eg. db field name = 'cusID' and poco property = 'CustomerID'. What is the best way to map these?

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about ADO.NET