Last post Sep 09, 2014 03:00 AM by Haansi
Sep 09, 2014 01:09 AM|Haansi|LINK
In a class library Ado.net Entity Data Model
is has generated POCO classes. These were generated fine for the first time. But database changes are not being reflected. In
diagram right clicking and choosing Update Model from Database
show newly created table but it do not add table even after selecting it to add.
I tried running .tt (by right click and Run custom tool) but even it did not regenerated the Poco classes as per latest DB changes.
Sep 09, 2014 01:48 AM|jsiahaan|LINK
I want to share your (mine also) frustration. Using "Run Custom Tool" is not always update a table.
To solve this, I called it dirty way but work perfectly:
This can help, and I always do this when I modify my table.
Sep 09, 2014 01:56 AM|Haansi|LINK
Can you please tell do you keep your Poco seprate from DAL or not ? Can you please share code example how your architecture your projects ?
thanks for that.
Sep 09, 2014 02:33 AM|jsiahaan|LINK
Here my project tree https://onedrive.live.com/?cid=BEAC4EF5DC359963&id=BEAC4EF5DC359963%21222301&v=3
It may help
Sep 09, 2014 03:00 AM|Haansi|LINK