Automatically maps an inheritance Relationship. based on the heuristic of ChildClass: ParentClass where the ChildClass and ParentClass are both BusinessObjects. The Inhertiance Relationship is always taken as Single Table.
Exemple #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();
 }