.net - how to determine whether a property has been changed in WCF -


i have wcf service invoked java written client. service can edit model in our database. while model has lots of properties, want users set properties need changed besides id property. problem is: in service side, how can determine whether property has been changed?

if send instance of type part of service operation request, wcf doesn't have built in way of knowing if property different, if client sending same instance of type received part of earlier service response.

in order determine this, wcf have somehow keep type instance in memory between requests , have mechanism correlate received instance respective 1 held in memory.

however handle this, think need make change data contract type include haschanged flag each of properties. on client when update property need set haschanged flag.

however, need communicated clients convention adhered when using service, not able practically enforce usage.

of course, alternative service interrogate request against teh database see has changed.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -