1.0.2005.1, Self Servicing. I understand how to directly update an entity without first having to fetch that entity via setting the .IsNew property to false and setting the primary key value via the ForcedCurrentValueWrite method. I would like to do the same thing without knowing the primary key field's value, instead only knowing the value of a SQL Server UniqueIdentifier (guid) field.
The reason for this is that I do not expose the primary key field values to the web services layer. I use a guid at that layer to uniquely identify entities.
I tried this
TransactionItemEntity tie = new TransactionItemEntity();
tie.IsNew = false;
tie.Guid = TransactionItemGuid; // this is the unique identifier field.
tie.UserCustomField1 = "whatever";
tie.Save();
but no luck.
I know I can first fetch the entity via the guid, but for performance reasons I dont want to make an unecessary call to the database.
Is this possible?
Thanks!