コード例 #1
0
        public void Seed(SmartObjectContext context)
        {
            if (!HostingEnvironment.IsHosted)
            {
                return;
            }

            // Move the whole media folder to new location at first
            MoveMediaFolder();

            // Reorganize files (root > Storage/{subfolder})
            DataMigrator.MoveFsMedia(context);
        }
コード例 #2
0
        public ActionResult MoveFsMedia()
        {
            var count = DataMigrator.MoveFsMedia(Services.DbContext);

            return(Content("Moved and reorganized {0} media files.".FormatInvariant(count)));
        }