I have two tables:
Clients (id, clientname) Projects (id, clientid, projecttitle) link to the clientid foreign key → clients.id
When I load a project with EF as follows:
thisProject = (from p in dataEntity.projects.Include("client")
where p.id == INTVALUE
select p).FirstOrDefault();
Then I change some values in this project and want to change the attitude towards another client, it will not allow me to change the clientid field in the Projects table.
Hope I explained it well enough, thanks
source
share