Hi,
I have the following mapping:
public class Research : BaseEntity
{
[AutoIncrement]
[PrimaryKey]
public long Id { get; set; }
[References(typeof(ProfileImageEntity))]
public long PrimaryImageId { get; set; }
[Reference]
public ProfileImageEntity PrimaryImage { get; set; }
[References(typeof(NameEntity))]
}
When I query from the database using LoadSelect.
The PrimaryImageId
is correct. but PrimaryImage
has different value. with other id.
I have only one place where I set PrimaryImageId
and zero places where I set PrimaryImage
How can those values be different (different id)?
Thanks