sql - Breeze "Unable to update the value of concurrency property before saving" error -
I'm winding up and in my first project, before saving I have to update the value of the concurrency property For the "new in-going" error, so far, I have 'worked' and 'read' parts worked but could not 'update' I saw this, but I saw this problem to see where Not sure
To access the database through LightSwitch Odata service and then angular to air my setup SQL Server (11.0.3128.0). is
where do I start? Is this a SQL Server problem, Breeze issue, or bug my programming? This error appears when I'm just calling with an em.saveChanges () a modified unit. The error is reporting on the field that has not been modified, but this may be the first field (?).
Edit ----------------
Because the model is automatically generated by LightSwitch, I have no access to the code But here is the metadata for the field (fName) which is throwing the error.
& lt; Property name = "faam" type = "Adam String" Nullable = "false" MaxLand = "50" ConcurrencyMode = "Fixed" xmlns = "http://schemas.microsoft.com/ado/2008/09/edm" / & Gt; Edit 2 ___________________
LightSwitch automatically sets "Fixed" for all the fields of syncimetry mode by default and I can change or set it Not in a way not visible The problem then shows the lightSwitch metadata as these areas do not occur to the concurrency property areas as they happen to be.
So long as the wind code can be changed, I can not update or delete the work with a light switch with Odata service.
This may be a problem with the model. As the comment in the code says, the datatyue of boolean, string and byte should not be defined as a concurrency column.
If the field in question is for a concurrent property, please make sure it is not one of those types of data types.
If this is a concurrency asset, maybe you can post a code snippet on how to define your model.
EDIT:
If, for any reason, that you are unable to change the model, you can avoid the concurrency check of air by applying this hack. :
entityManager.metadataStore.getEntityTypes () .forEach (function (entityType) {entityType.concurrencyProperties = [];}); Please note that with this implementation, you are now responsible for creating your own concurrency check mechanism, either on the customer or server.
Comments
Post a Comment