Hi,
I want to change the values of two fields using the UpdateEntitiesDirectly.
Suppose we have to calculate an average sale's price of a given product at the moment of the sale.
In the product table I have a TotalAmount field and a AvgPrice field.
After sale I want to modify the TotalAmount:
TotalAmount=TotalAmount + saledAmount
And calculate the AvgPrice:
AvgPrice=AvgPrice + LastSaledPrice / TotalAmount
Is it possible to do this in one round trip, or change the appropriate fields values, without fetching the entities?
Thanks
Gabor