vegaitglobal / uSiteBuilder

Vega IT’s uSitebuilder is an open source (LPGL) framework created for .NET developers to accelerate and streamline their Umbraco based development projects. Our objective is to enable back-end developers to adhere to the .NET standards with minimal external interaction, and to facilitate the automation of their deployments.
GNU Lesser General Public License v2.1
29 stars 21 forks source link

Datatype sync in v7 #15

Closed pawelgur closed 9 years ago

pawelgur commented 10 years ago

Hi,

not sure if datatype syncing is implemented 100%, so it might be a feature request.

Datatype syncing works well in v6, but after migrating to v7 it does not work as expected. Currently Property Editors get referenced by "RenderControlName", but it should be referenced by alias in v7. When using RenderControlName = "Media Picker" it references to "Legacy Media Picker" in v7 and not to "Media Picker". Tried referencing by alias but that didn't work.

Here is the code i use:

[DataType(
        Name = "Image Picker",
        DatabaseDataType = DBTypes.Nvarchar,
        RenderControlName = "Media Picker"
        )]
    public class ImagePicker : DataTypeBase
    {
        public override DataTypePrevalue[] Prevalues
        {
            get { return new DataTypePrevalue[]{}; }
        }
    }