Вопрос

I currently developing a client server application and use a WCF interface for communication. Via this interface i get my business objects. I am using MVVM.

The users can make changes in the client (e.g. via a textbox). Later i want to send the obejcts back to the server and the server shall decide whether an object needs to be saved or whether it should ignore it because noch changes were made.

I am now looking for a way to "tag" the business objects so that the server can make his decision. Has somboody an idea how i could do this??? Or much better does anyone know a tutorial???

Это было полезно?

Решение

What you're trying to do is already implemented in the Entity Framework Self Tracking Entities. I don't know if you are using EF in the backend as the ORM, though, you may use some code from the STE T4 Template to implement your own change tracking logic.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top