Click here to Skip to main content
15,884,821 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I want to reuse an existing project code. I have all the POCO classes(replica of tables) available with me from the old project which is attached to DBCOntext also.

However in my new project my DB structure is different. I am planing to replace the old POCO classes with new ones with same name and structure but they will be view(not tables) in DB.

is it possible in EntityFramwork 6? if yes then how? Is there any other way to deal with the this problem.

Thanks in advance!!!
Posted

1 solution

OK. Weird. You do realize you won't be able to write anything back to the database, correct?

If you had, in your original solution, all of the EF code in a seperate project(s), completely seperate from the application code, you wouldn't have to recreate everything in your new solution. You just reuse the old EF project.
 
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