MapOneToOne() public method

Maps the ReflectionWrappers.PropertyWrapper to a IRelationshipDef.
public MapOneToOne ( ) : IRelationshipDef
return IRelationshipDef
Ejemplo n.º 1
0
        ///<summary>
        /// Creates the <see cref="IRelationshipDef"/> from the PropertyWrapper.
        ///</summary>
        ///<param name="propWrapper"></param>
        ///<returns></returns>
        public static IRelationshipDef MapOneToOne(this PropertyWrapper propWrapper)
        {
            if (propWrapper == null)
            {
                return(null);
            }
            OneToOneAutoMapper autoMapper = new OneToOneAutoMapper(propWrapper);

            return(autoMapper.MapOneToOne());
        }
 ///<summary>
 /// Creates the <see cref="IRelationshipDef"/> from the PropertyWrapper.
 ///</summary>
 ///<param name="propWrapper"></param>
 ///<returns></returns>
 public static IRelationshipDef MapOneToOne(this PropertyWrapper propWrapper)
 {
     if (propWrapper == null) return null;
     OneToOneAutoMapper autoMapper = new OneToOneAutoMapper(propWrapper);
     return autoMapper.MapOneToOne();
 }