Hi,
Using EF5, how would I update a property of an Entity based on the value of the property of another Entity?
So for example, I have a Project & Tasks application (a project can have many tasks) and I want the Project to display whether it's On Target or not based on the status of it's related tasks.
Do I just need to override the setter for the Tasks property to update the related Project property if required, or is there a better way to do this?
Hope I've given enough details!
Thanks,
Using EF5, how would I update a property of an Entity based on the value of the property of another Entity?
So for example, I have a Project & Tasks application (a project can have many tasks) and I want the Project to display whether it's On Target or not based on the status of it's related tasks.
Do I just need to override the setter for the Tasks property to update the related Project property if required, or is there a better way to do this?
Hope I've given enough details!
Thanks,