Map() public method

public Map ( ) : ISuperClassDef
return ISuperClassDef
Ejemplo n.º 1
0
        /// <summary>
        /// Maps any Inhertiance Relationships for the <paramref name="typeWrapper"/>.
        /// and returns the <see cref="ISuperClassDef"/> that is used to
        /// map these in Habanero.
        /// </summary>
        public static ISuperClassDef MapInheritance(this TypeWrapper typeWrapper)
        {
            if (typeWrapper.IsNull())
            {
                return(null);
            }
            InheritanceAutoMapper autoMapper = new InheritanceAutoMapper(typeWrapper);

            return(autoMapper.Map());
        }
 /// <summary>
 /// Maps any Inhertiance Relationships for the <paramref name="typeWrapper"/>.
 /// and returns the <see cref="ISuperClassDef"/> that is used to 
 /// map these in Habanero.
 /// </summary>
 public static ISuperClassDef MapInheritance(this TypeWrapper typeWrapper)
 {
     if (typeWrapper.IsNull()) return null;
     InheritanceAutoMapper autoMapper = new InheritanceAutoMapper(typeWrapper);
     return autoMapper.Map();
 }