I have a SQL table with a int field defined as identity and a guid field as PK.
On the int field I created a UniqueConstraint to be able to use FetchEntityUsingUniqueConstraint()
But I can't seem do that.
The documentation suggests this code:
item = new CustomerEntity();
item.CustomerIntId = 22;
adapter.FetchEntityUsingUniqueConstraint(item,item.ConstructFilterForUCTypeIntId());
but item.CustomerIntId has no setter because as identity field it is a read-only field.
Any suggestion of a different approach?