linq to sql - Problem with Updating an Entity with a Timestamp Column via WCF -
We are trying to update an organization via WCF, and the unit has a timestamp column. When we try to update, we get the following data. Linker error, "A member calculated or generated by the database can not be changed." This message is talking about the timestamp column.
If we try to update the same without using WCF, then it works fine. So this issue should be with WCF. We have the appropriate [datamember] attribute on the timestamp property for serialization.
Randy
Itemprop = "text">
This issue is actually nothing to do with the WCF.
Is this really a SQL Server TIMESTAMP
data type ??
You can not update those people - when anything happens in the row, then SQL Server will automatically update those fields.
For more information, see "here" or "here".
How do you handle updates to Linq-to-SQL data when you receive WCF messages? Can you show us some code for this?
For example: Is that area / property data contract defined as a readable property?
In addition, since you are sending organizations through WCF, they will be sent "disconnected" units to Linux-to-SQL, e.g. Institutions that are not always within the scope of a datacontext. It may have an effect that Linq-to-SQL wants to add a new unit with a new value for the timestamp column in its database ....
Comments
Post a Comment