문제

I use a 3 tier release system; alpha, beta and final. I'm using EF6 database-first approach to update my database model every time I make a change. Each release uses the same database, so the beta site is using the same data as the final release.

If I want to rename a table (and the related entity model) in my existing database, how would I allow the existing final release to continue working as normal (pointing to the old table name) and the beta release to point to the new table name?

도움이 되었습니까?

해결책

Create a View in your Datatabase:

CREATE VIEW [OldTableName] AS SELECT * FROM [NewTableName];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top