protected override bool TryPrepareValue(DbConnection connection, ColumnMapper columnMapper, TableInfo table, string columnName, ref object value)
 {
     if (table.Name == "projects_comments" && columnName == "content" ||
         table.Name == "projects_messages" && columnName == "content")
     {
         value = FCKEditorPathUtility.CorrectStoragePath(value as string, columnMapper.GetTenantMapping());
         return(true);
     }
     return(base.TryPrepareValue(connection, columnMapper, table, columnName, ref value));
 }
Exemple #2
0
        protected override bool TryPrepareValue(DbConnection connection, ColumnMapper columnMapper, TableInfo table, string columnName, ref object value)
        {
            var column = columnName.ToLowerInvariant();

            if (table.Name == "forum_post" && column == "text" ||
                table.Name == "events_feed" && column == "text" ||
                table.Name == "events_comment" && column == "comment" ||
                table.Name == "blogs_posts" && column == "content" ||
                table.Name == "blogs_comments" && column == "content" ||
                table.Name == "bookmarking_comment" && column == "content" ||
                table.Name == "wiki_comments" && column == "body")
            {
                value = FCKEditorPathUtility.CorrectStoragePath(value as string, columnMapper.GetTenantMapping());
                return(true);
            }
            return(base.TryPrepareValue(connection, columnMapper, table, columnName, ref value));
        }