public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_OneSide.HasValue) { OneSideImpl = (Zetbox.App.Test.One_to_N_relations_OneMemoryImpl)Context.Find <Zetbox.App.Test.One_to_N_relations_One>(_fk_OneSide.Value); } else { OneSideImpl = null; } }
public override void ReloadReferences() { // Do not reload references if the current object has been deleted. // TODO: enable when MemoryContext uses MemoryDataObjects //if (this.ObjectState == DataObjectState.Deleted) return; base.ReloadReferences(); // fix direct object references if (_fk_OneSide.HasValue) OneSideImpl = (Zetbox.App.Test.One_to_N_relations_OneMemoryImpl)Context.Find<Zetbox.App.Test.One_to_N_relations_One>(_fk_OneSide.Value); else OneSideImpl = null; // fix cached lists references }