Upgrading the Visual Studio solution
Copy old solution directory
Create an IIS Site for the new solution
Using Dynamix Manager - Edit Database binding and enter a new database name
(Optional) make a backup of old developer database and restore into the new database
Using Dynamix Manager - Upgrade to most recent version of Dynamix 5 (at least 5.2.83)
In solution root folder - create a folder named DynamixSystemFolders with sub folders named ImageCache, FormFiles, Temp and UserPhotos. (Move existing files to apprpriate folder)
Using Dynamix Manager - uninstall all Dynamix 5 modules (including Dnamix 5)
Using Dynamix Manager - install Dynamix 6
Open solution in Visual Studio
Right click Solution node - click on "Upgrade all .dx files to .dx6"
Edit project properties - Change Target framework to 4.5 or later
Edit AssemblyInfo.cs - add DynamixAssemblyAttribute and change the version number
[assembly: Dynamix.DynamixAssembly]
Replace old ToolbarComponent classes with UiComponent classes
Replace old Customizer classes with new PageUi classes, usually inherit from ListObjectsUi or TreeAndListObjectsUi
Replace old NameProviders with classes deriving from Descriptor and override GetObjectName
Object/type descriptor properties (IName_Name etc) for types deriving from Dynamix.Object should be replaced with overrides in Descriptor class for the type. Add inner partial class to .dx6.cs-file if it doesn't already exits.
public partial class MyClass
{
public partial class MyClassDescriptor<T>
{
public override string GetObjectName( T o )
{
return o.Name;
}
}
}
Lägg till namn på alla typer som inte hade
lokaliserade namn tidigare (Auto_Type_Name)
The Namespace Dynamix.UI has been renamed to Dynamix.Ui
Property validators for upgraded Dynamix objects may have to replaced with new validators by editing the .dx6 files.
There is a new model for editing and saving objects, replace calls to GetEditableCopy and DB_Save with calls to Storage.Edit and Storage.Save
If you have a WiX setup project for the site, replace the UpgradeCode in Config.wxi with a new Guid.
Edit module.xml and change the databaseName to something new and unique, change the version number to match the version number for the assembly. Update the dependencies to refer to Dynamix 6 modules.
Some types have been removed, including Dynamix.Content.ImageElements.BannerContentType, Dynamix.Content.ImageElements.ImageContentType, Dynamix.Content.ImageElements.RandomImageContentType, Dynamix.Content5.ImageArchiveElement, Dynamix.Category, Dynamix.Article
Dynamix.LegacyTextStyle has been removed, make sure that there are no types deriving from it and use Dynamix.Manager to execute Runnable ReplaceLegacyTextStyles
Using Dynamix.Manager - execute Runnable "AfterUpgradeFromDx5"
When project compiles, right click solution node and click on "Update Dynamix Object Model"