public static OrderDetail RelatedObject(this OrderDetailEntity entity, Hashtable seenObjects, Hashtable parents)
        {
            if (null == entity)
            {
                return(null);
            }

            if (seenObjects.Contains(entity))
            {
                if (parents.Contains(entity))
                {
                    // avoid cyclic references
                    return(null);
                }
                else
                {
                    return(seenObjects[entity] as OrderDetail);
                }
            }

            return(entity.ToDto(seenObjects, parents));
        }
 public static OrderDetail ToDto(this OrderDetailEntity entity)
 {
     return(entity.ToDto(new Hashtable(), new Hashtable()));
 }