A Class to Reflectively map a PropertyInfo to a ManyToOne Habanero Relationship.
        /// <summary>
        /// Automatically map the RelDef for this propWrapper
        /// </summary>
        /// <param name="propWrapper"></param>
        /// <returns></returns>
        public static IRelationshipDef MapManyToOne(this PropertyWrapper propWrapper)
        {
            if (propWrapper == null) return null;

            ManyToOneAutoMapper autoMapper = new ManyToOneAutoMapper(propWrapper);
            return autoMapper.MapManyToOne();
        }
Exemple #2
0
        /// <summary>
        /// Automatically map the RelDef for this propWrapper
        /// </summary>
        /// <param name="propWrapper"></param>
        /// <returns></returns>
        public static IRelationshipDef MapManyToOne(this PropertyWrapper propWrapper)
        {
            if (propWrapper == null)
            {
                return(null);
            }

            ManyToOneAutoMapper autoMapper = new ManyToOneAutoMapper(propWrapper);

            return(autoMapper.MapManyToOne());
        }