I use Entity Framework 6 with SQLite and code first. I have a problem with the update of objects.
I have an "Record" object
class Record {
public long Id;
public long StatusId
public virtual Statut Status;
}
And so a "Status" object.
I create a Record object like that
var newRecord = context.Records.Create();
While I did not add it in the context, the Status property is null.
context.Records.Add(newRecord);
Now, I have a Status object in Status navigation property (The status object with id = 0).
But if I change StatusId with 1 for example (this status id exist), the Status property is not updated.
Entity framework should not detect this kind of change with dynamic proxies?
Thanks,