I apparently have fallen prey for a classic Entity Framework 'gotcha'. Null ObjectContext and needing to play with EntityKeys. Not quite sure how to do it with an EntityCollection, so, like always, I posted the details on Stack Overflow: http://stackoverflow.com/questions/6195167/problems-trying-to-attach-a-new-ef4-entity-to-objectcontext-while-its-entity-coll
No comments:
Post a Comment