Hi all,
I'm trying to update a record from an entity utilizing with the generated classes from the odata templating and code generation tool but the server is returning a 400 Bad Request:
I'm updating the entity in a fashion similar to this
var entity = context.ConsItemPrices.Where(x => x.ItemId == "value").First();
entity.PropertyName = "some value";
context.UpdateObject(entity);
context.SaveChanges();
This pattern works for almost any other entity except for this one. It should be important to note that this is a custom entity that it's Primary Key consists of simple types and a custom enum which was set as Nullable = true. Before generating the classes from the $meta data file, I had to tweak the key to make the enum into a string and also make it nullable = false so that I could even read the entity set from the Odata endpoint. I have a feeling that it might be the cause of the update failure.
Any thoughts or ideas are more then welcome.
Thank you.