MapManyToOne() public method

Maps the PropertyInfo to a Many to One relationship
public MapManyToOne ( ) : IRelationshipDef
return IRelationshipDef
        /// <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();
        }
Ejemplo n.º 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());
        }