Ok, I have a situation that I do not see a way to retrieve single entity unless I use FetchColleciton and then get entity at index 0 position.
So I have a table that has compound PK
Id - int (PK)
Date - datetime (PK)
I cannot use FetchEntity with PK as this will not return me nothing due to conversion (no miliseconds).
So I added another column
RecordId (int, identity) and there is not way to get it by RecordId, I either have to use prefetch paths of FetchCollection?.
I tried making this colum a unique constraint, but since RecordId is marked as readonly (identity filed) then that wont work as I cannot assign value to this property to use adapter.FetchEntityUsingUniqueConstraint
So I have to user either prefetch path or fetchcollection?