This question is locked. New answers and comments are not allowed.
Hello,
I have a distributed application based on WCF. Even I perform data validation at the client side, I also must do it at the server side and I also need to perform more complex business rules validation as well.
I tryied to pass my data to the server using the ObjectContainer.GetChanges() using the 'Changed' verification mode so the WCF message is as small as possible. That's ok, but in the case of a complex object, sometimes some parts of the object remain unchainged so they are null at the server side (which is obvious). The problem is that some data checks are failing because these 'sub-objects' are null and null values are not allowed in those cases (because of the system requirements). What I really need to do, I think, is to pass only changed objects and their entire network.
That's the tipical case of an invoice object. Supose I have at the client side an object container with 200 invoice objects. But I change only one, just at the header level. I would like to pass the changed header and all it's children objects (the whole object network), but NOT the 200 invoices...
Is there any chance this could be done? If not, i think it could be a great addition for future versions.
Best regards,
Gonzalo
I have a distributed application based on WCF. Even I perform data validation at the client side, I also must do it at the server side and I also need to perform more complex business rules validation as well.
I tryied to pass my data to the server using the ObjectContainer.GetChanges() using the 'Changed' verification mode so the WCF message is as small as possible. That's ok, but in the case of a complex object, sometimes some parts of the object remain unchainged so they are null at the server side (which is obvious). The problem is that some data checks are failing because these 'sub-objects' are null and null values are not allowed in those cases (because of the system requirements). What I really need to do, I think, is to pass only changed objects and their entire network.
That's the tipical case of an invoice object. Supose I have at the client side an object container with 200 invoice objects. But I change only one, just at the header level. I would like to pass the changed header and all it's children objects (the whole object network), but NOT the 200 invoices...
Is there any chance this could be done? If not, i think it could be a great addition for future versions.
Best regards,
Gonzalo