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

This fixes spopovic/uSiteBuilder#15 #21

Closed VladimirLevchuk closed 9 years ago

VladimirLevchuk commented 10 years ago
VladimirLevchuk commented 9 years ago

I fixed target framework for test projects, but I use my company project for testing. uSiteBuilder test sites do not use nuget packages and cannot be easily run in my environment.

Sample code for data type:

[DataType(Name = CustomEditors.SingleLinkPicker
    , PropertyEditorAlias = "RJP.MultiUrlPicker"
    , DataTypeDatabaseType = DataTypeDatabaseType.Nvarchar)]
public class SingleLinkPicker : DataTypeBase
{
    public override DataTypePrevalue[] Prevalues
    {
        get
        {
            return new []
            {
                new DataTypePrevalue("minNumberOfItems", null), 
                new DataTypePrevalue("maxNumberOfItems", "1")
            };
        }
    }
}

[DataType(Name = CustomEditors.MultiMediaPicker
    , PropertyEditorAlias = "Umbraco.MultipleMediaPicker"
    , DataTypeDatabaseType = DataTypeDatabaseType.Nvarchar)]
public class MultiMediaPicker : DataTypeBase
{
    public override DataTypePrevalue[] Prevalues
    {
        get
        {
            return new[]
            {
                new DataTypePrevalue("multiPicker", "1")
            };
        }
    }
}

[DataType(Name = CustomEditors.MultiContentPicker,
    PropertyEditorAlias = "Umbraco.MultiNodeTreePicker")]
public class MultiContentPicker : DataTypeBase
{
    public override DataTypePrevalue[] Prevalues
    {
        get
        {
            return new []
            {
                new DataTypePrevalue("startNode", "{    \"type\": \"content\"  }"), 
                new DataTypePrevalue("filter", null), 
                new DataTypePrevalue("minNumber", null), 
                new DataTypePrevalue("maxNumber", null), 
            };
        }
    }
}