Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have an Entity Framework database in C#. For working efficient, I need to convert Tables to List<RowClass> then work with the list. When I want to save the list to the table, I have to delete all rows then readd list items to the Table. The problem is that Entity Framework does not let you add an item which is deleted previously. I have to clone the Items. Entity cloning seems to be difficult. Is there any way to change an entity item in a way that looks as a different object for entity framework?

Mark Nischalke wrote:
I suggest you read more about Entity Framework and how to use it.

Thanks for your advice. Most of websites are useless. Do you know any comprehensive reference for EF?
Posted
Updated 26-Apr-10 3:11am
v3

1 solution

With EF you don't work with tables, you work with entities. If you want to add an entity that was retrieved previously you must attached it to a context.

I suggest you read more about Entity Framework and how to use it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900