Hi,
I have an entity with a read-only field with a unique constraint.
When I try to do FetchEntityUsingUniqueConstraint like this:
entity.UserName = userName;
if (adapter.FetchEntityUsingUniqueConstraint(entity, entity.ConstructFilterForUCUserName()))
I get the following error:
The field 'UserName' is read-only and can't be changed.
Exception Details: SD.LLBLGen.Pro.ORMSupportClasses.ORMFieldIsReadonlyException: The field 'UserName' is read-only and can't be changed.
I understand that you shouldn't change a read-only field, but it needs to be set for the Fetch.
I guess I could do a FetchEntityCollection with the correct IRelationPredicateBucket to get the same result. But maybe there is a better way, maybe a flag I could set to be able to set the read-only field for a Fetch operation?
Thanks,
Jeffry