Beispiel #1
0
        public virtual Guid GetRequestMapId(IDomainObject connectedToObject, out SetTargetChoice setTarget)
        {
            object[] propertyMapAttributes = this.GetType().GetProperty("RequestMap").GetCustomAttributes(typeof(PropertyMapAttribute), true);
            setTarget = ((PropertyMapAttribute)propertyMapAttributes[0]).SetTarget;

            if (connectedToObject == null)
            {
                return(RequestMap == null ? Guid.Empty : RequestMap.Id);
            }
            else if (NHibernate.Proxy.NHibernateProxyHelper.GetClassWithoutInitializingProxy(connectedToObject) == NHibernate.Proxy.NHibernateProxyHelper.GetClassWithoutInitializingProxy(MappedToObject))
            {
                if (MappedToObject.Id == connectedToObject.Id)
                {
                    return(RequestMap == null ? Guid.Empty : RequestMap.Id);
                }
                else
                {
                    return(Guid.Empty);
                }
            }
            else
            {
                return(Guid.Empty);
            }
        }
Beispiel #2
0
        public Guid GetRequestMapId(IDomainObject connectedToObject, out SetTargetChoice setTarget)
        {
            setTarget = SetTargetChoice.No;

            if (NHibernate.Proxy.NHibernateProxyHelper.GetClassWithoutInitializingProxy(connectedToObject) == typeof(ServiceMethod))
            {
                if (connectedToObject.Id == AddServiceMethodId)
                {
                    return(AddServiceMethodMapId);
                }
                else if (connectedToObject.Id == RemoveServiceMethodId)
                {
                    return(RemoveServiceMethodMapId);
                }
                else if (connectedToObject.Id == LeftFindServiceMethodId)
                {
                    return(LeftFindServiceMethodMapId);
                }
                else if (connectedToObject.Id == RightFindServiceMethodId)
                {
                    return(RightFindServiceMethodMapId);
                }
                else
                {
                    return(Guid.Empty);
                }
            }
            else
            {
                return(Guid.Empty);
            }
        }
Beispiel #3
0
        public virtual Guid GetRequestMapId(IDomainObject connectedToObject, out SetTargetChoice setTarget)
        {
            setTarget = SetTargetChoice.No;

            if (connectedToObject == null)
            {
                return(RequestMap == null ? Guid.Empty : RequestMap.Id);
            }
            else
            {
                return(Guid.Empty);
            }
        }
        public Guid GetResponseMapId(IDomainObject connectedToObject, out SetTargetChoice setTarget)
        {
            setTarget = SetTargetChoice.No;

            if (NHibernate.Proxy.NHibernateProxyHelper.GetClassWithoutInitializingProxy(connectedToObject) == typeof(View))
            {
                return(resultMapId);
            }
            else
            {
                return(Guid.Empty);
            }
        }
 public Guid GetRequestMapId(IDomainObject connectedToObject, out SetTargetChoice setTarget)
 {
     setTarget = SetTargetChoice.No;
     if (connectedToObject == null)
     {
         return(ViewMapId);
     }
     else if (NHibernate.Proxy.NHibernateProxyHelper.GetClassWithoutInitializingProxy(connectedToObject) == typeof(Dialog) && connectedToObject.Id == DialogId)
     {
         return(ViewMapId);
     }
     else
     {
         return(Guid.Empty);
     }
 }
Beispiel #6
0
 public virtual Guid GetResponseMapId(IDomainObject connectedToObject, out SetTargetChoice setTarget)
 {
     setTarget = SetTargetChoice.No;
     return(Guid.Empty);
 }