locked
Partially representing db table RRS feed

  • Question

  • Hello, I am creating an EF4 model for use with a WCF data service. I was planning on going th poco route however, I am a little disturbed by the fact that I must basically exactly model the db tables. I was hoping to be able create my own types composed of data from more than one table and not including all data from a given table. At the very least, I need to be able to exclude columns such as the create and last modified dates for each of the columns. Is this not possible in Entity Framework? It seems like I must be missing something since this is commonly available in other or/m tools.

    TIA!

    Friday, February 25, 2011 5:31 PM

Answers

  • Your model does not have to match the database exactly. Take a look at Complex Types . As for excluding columns, take a look at this post .
    • Marked as answer by rkbrown Thursday, March 3, 2011 4:56 AM
    Friday, February 25, 2011 10:53 PM