BetterCms.Module.Installation.Models.Migrations.InitialSetup.ChangeTemplatesPaths C# (CSharp) Метод

ChangeTemplatesPaths() приватный Метод

private ChangeTemplatesPaths ( ) : void
Результат void
        private void ChangeTemplatesPaths()
        {
            // For backward compatibility.

            Update.Table(LayoutsTableName)
                  .InSchema(rootSchemaName)
                  .Set(new { LayoutPath = "~/Areas/bcms-installation/Views/Shared/WideLayout.cshtml" })
                  .Where(new { LayoutPath = "~/Areas/bcms-templates/Views/Shared/WideLayout.cshtml" });

            Update.Table(LayoutsTableName)
                  .InSchema(rootSchemaName)
                  .Set(new { LayoutPath = "~/Areas/bcms-installation/Views/Shared/TwoColumnsLayout.cshtml" })
                  .Where(new { LayoutPath = "~/Areas/bcms-templates/Views/Shared/TwoColumnsLayout.cshtml" });

            Update.Table(LayoutsTableName)
                  .InSchema(rootSchemaName)
                  .Set(new { LayoutPath = "~/Areas/bcms-installation/Views/Shared/ThreeColumnsLayout.cshtml" })
                  .Where(new { LayoutPath = "~/Areas/bcms-templates/Views/Shared/ThreeColumnsLayout.cshtml" });
        }