/// <summary> /// Must the Class wrapped by the <paramref name="typeWrapper"/> /// be mapped. /// </summary> /// <param name="typeWrapper"></param> /// <returns></returns> public static bool MustBeMapped(this TypeWrapper typeWrapper) { if (typeWrapper.IsNull()) { return(false); } var autoMapper = new ClassAutoMapper(typeWrapper); return(autoMapper.MustBeMapped()); }
/// <summary> /// Maps the Class of <paramref name="typeWrapper"/> to a ClassDef. /// Note_ this will not create the reverse relationships on /// the Related Class if they are required. If you require reverse relationships to be set up then please /// use the <see cref="AllClassesAutoMapper"/> /// </summary> /// <param name="typeWrapper"></param> /// <returns></returns> public static IClassDef MapClass(this TypeWrapper typeWrapper) { if (typeWrapper.IsNull()) { return(null); } var autoMapper = new ClassAutoMapper(typeWrapper); return(autoMapper.Map()); }
/// <summary> /// Must the Class wrapped by the <paramref name="typeWrapper"/> /// be mapped. /// </summary> /// <param name="typeWrapper"></param> /// <returns></returns> public static bool MustBeMapped(this TypeWrapper typeWrapper) { if (typeWrapper.IsNull()) return false; var autoMapper = new ClassAutoMapper(typeWrapper); return autoMapper.MustBeMapped(); }
/// <summary> /// Maps the Class of <paramref name="typeWrapper"/> to a ClassDef. /// Note_ this will not create the reverse relationships on /// the Related Class if they are required. If you require reverse relationships to be set up then please /// use the <see cref="AllClassesAutoMapper"/> /// </summary> /// <param name="typeWrapper"></param> /// <returns></returns> public static IClassDef MapClass(this TypeWrapper typeWrapper) { if (typeWrapper.IsNull()) return null; var autoMapper = new ClassAutoMapper(typeWrapper); return autoMapper.Map(); }