public bool ShouldFollowLink(DomainObject root, DomainObject currentObject, int currentDepth, PropertyAccessor linkProperty)
 {
     return(true);
 }
        /// <summary>
        /// Initializes a new instance of the <b>RelationChangingEventArgs</b> class.
        /// </summary>
        /// <param name="relationEndPointDefinition">The relation endpoint defintion. Must not be <see langword="null"/>.</param>
        /// <param name="oldRelatedObject">The related object that is removed from the relation, or <see langword="null" /> if a new item is added without
        /// replacing an old one.</param>
        /// <param name="newRelatedObject">The related object that is added to the relation, or <see langword="null" /> if an old item is removed without
        /// being replaced by a new one.</param>
        /// <exception cref="System.ArgumentNullException"><paramref name="relationEndPointDefinition"/> is <see langword="null"/>.</exception>
        public RelationChangedEventArgs(IRelationEndPointDefinition relationEndPointDefinition, DomainObject oldRelatedObject, DomainObject newRelatedObject)
        {
            ArgumentUtility.CheckNotNull("relationEndPointDefinition", relationEndPointDefinition);

            _relationEndPointDefinition = relationEndPointDefinition;
            _oldRelatedObject           = oldRelatedObject;
            _newRelatedObject           = newRelatedObject;
        }
 public bool ShouldProcessObject(DomainObject domainObject)
 {
     return(true);
 }
        public void RelationRead(ClientTransaction clientTransaction, DomainObject domainObject, IRelationEndPointDefinition relationEndPointDefinition, DomainObject relatedObject, ValueAccess valueAccess)
        {
            ArgumentUtility.DebugCheckNotNull("domainObject", domainObject);
            ArgumentUtility.DebugCheckNotNull("relationEndPointDefinition", relationEndPointDefinition);

            for (int i = 0; i < Count; i++)
            {
                this[i].RelationRead(clientTransaction, domainObject, relationEndPointDefinition, relatedObject, valueAccess);
            }
        }
        public void RelationChanged(ClientTransaction clientTransaction, DomainObject domainObject, IRelationEndPointDefinition relationEndPointDefinition, DomainObject oldRelatedObject, DomainObject newRelatedObject)
        {
            ArgumentUtility.DebugCheckNotNull("domainObject", domainObject);
            ArgumentUtility.DebugCheckNotNull("relationEndPointDefinition", relationEndPointDefinition);

            for (int i = 0; i < Count; i++)
            {
                this[i].RelationChanged(clientTransaction, domainObject, relationEndPointDefinition, oldRelatedObject, newRelatedObject);
            }
        }
Esempio n. 6
0
 public virtual void PropertyValueReading(ClientTransaction clientTransaction, DomainObject domainObject, PropertyDefinition propertyDefinition, ValueAccess valueAccess)
 {
 }
Esempio n. 7
0
 public virtual void ObjectDeleted(ClientTransaction clientTransaction, DomainObject domainObject)
 {
 }
Esempio n. 8
0
 public virtual void RelationChanged(ClientTransaction clientTransaction, DomainObject domainObject, IRelationEndPointDefinition relationEndPointDefinition, DomainObject oldRelatedObject, DomainObject newRelatedObject)
 {
 }
Esempio n. 9
0
 public virtual void PropertyValueChanged(ClientTransaction clientTransaction, DomainObject domainObject, PropertyDefinition propertyDefinition, object oldValue, object newValue)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <b>DomainObjectCollectionChangingEventArgs</b> class.
 /// </summary>
 /// <param name="domainObject">The <see cref="Remotion.Data.DomainObjects.DomainObject"/> that is being added or removed to the collection. Must not be <see langword="null"/>.</param>
 /// <exception cref="System.ArgumentNullException"><paramref name="domainObject"/> is <see langword="null"/>.</exception>
 public DomainObjectCollectionChangeEventArgs(DomainObject domainObject)
 {
     ArgumentUtility.CheckNotNull("domainObject", domainObject);
     _domainObject = domainObject;
 }