Serializing Entity Framework Object Objects Through WCF

The situation is as follows: when adding an object that has 2 levels of detail in the database using EF, the process works fine on SaveChanges () for the first time, since all the data is loaded from the database.

I tried to save lists in sessions and even in ViewState (to avoid serialization problems) but when I create a new object and add details to it, the insertion process failed at the web level due to serialization problems

Note: Calling the business layer and data layer is routed through the WCF service.

+3
source share
1 answer

I suspect that you are decoupling your EF objects from the context that created them. I saw such problems, I don’t know if this is your case, though ...

0
source

All Articles