Problem:
- EF 5.0 using DBContext by defaults
- DBContext is not serializable, so can't be consumed over WCF
- we can make the DBContext serializable by editing the T4 template of the entity framework which is alot of work and hacky
- we can use STE entities (self tracking entities)
- when sending the entity back you need to mark the entity as modified after attaching and before saving
- http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/c9a6eca8-3865-4c6b-adaa-9f22c98e09cb/
No comments:
Post a Comment