Ejemplo n.º 1
0
        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_Sequence.HasValue)
            {
                SequenceImpl = (Zetbox.App.Base.SequenceEfImpl)Context.Find <Zetbox.App.Base.Sequence>(_fk_Sequence.Value);
            }
            else
            {
                SequenceImpl = null;
            }
        }
Ejemplo n.º 2
0
        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_Sequence.HasValue)
                SequenceImpl = (Zetbox.App.Base.SequenceEfImpl)Context.Find<Zetbox.App.Base.Sequence>(_fk_Sequence.Value);
            else
                SequenceImpl = null;
            // fix cached lists references
        }