I have the following 2 tables TableA and ArchivedTableA.
Basically They are identical tables, but rows from TableA are moved to ArchivedTable to archive them.
How can I represent this in entity Framework so that these 2 classes inherit from the same entity. I am using POCOs.
I would recommend not using inheritance in this situation. If you were to “archive” a record from TableA to ArchiveTableA it would still be in your base table.
Julie Lerman has a good MSDN article of some of the pitfalls of inheritance. http://msdn.microsoft.com/en-us/magazine/jj553510.aspx