* Rename Umbraco.Core namespace to Umbraco.Cms.Core * Move extension methods in core project to Umbraco.Extensions * Move extension methods in core project to Umbraco.Extensions * Rename Umbraco.Examine namespace to Umbraco.Cms.Examine * Move examine extensions to Umbraco.Extensions namespace * Reflect changed namespaces in Builder and fix unit tests * Adjust namespace in Umbraco.ModelsBuilder.Embedded * Adjust namespace in Umbraco.Persistence.SqlCe * Adjust namespace in Umbraco.PublishedCache.NuCache * Align namespaces in Umbraco.Web.BackOffice * Align namespaces in Umbraco.Web.Common * Ensure that SqlCeSupport is still enabled after changing the namespace * Align namespaces in Umbraco.Web.Website * Align namespaces in Umbraco.Web.UI.NetCore * Align namespaces in Umbraco.Tests.Common * Align namespaces in Umbraco.Tests.UnitTests * Align namespaces in Umbraco.Tests.Integration * Fix errors caused by changed namespaces * Fix integration tests * Undo the Umbraco.Examine.Lucene namespace change This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows. * Fix merge * Fix Merge
75 lines
3.6 KiB
C#
75 lines
3.6 KiB
C#
using System.Collections.Generic;
|
|
using Umbraco.Cms.Core.Models;
|
|
using Umbraco.Cms.Core.Strings;
|
|
|
|
namespace Umbraco.Cms.Core
|
|
{
|
|
public static class ConventionsHelper
|
|
{
|
|
public static Dictionary<string, PropertyType> GetStandardPropertyTypeStubs(IShortStringHelper shortStringHelper) =>
|
|
new Dictionary<string, PropertyType>
|
|
{
|
|
{
|
|
Constants.Conventions.Member.Comments,
|
|
new PropertyType(shortStringHelper, Constants.PropertyEditors.Aliases.TextArea, ValueStorageType.Ntext, true,
|
|
Constants.Conventions.Member.Comments)
|
|
{
|
|
Name = Constants.Conventions.Member.CommentsLabel
|
|
}
|
|
},
|
|
{
|
|
Constants.Conventions.Member.FailedPasswordAttempts,
|
|
new PropertyType(shortStringHelper, Constants.PropertyEditors.Aliases.Label, ValueStorageType.Integer, true,
|
|
Constants.Conventions.Member.FailedPasswordAttempts)
|
|
{
|
|
Name = Constants.Conventions.Member.FailedPasswordAttemptsLabel,
|
|
DataTypeId = Constants.DataTypes.LabelInt
|
|
}
|
|
},
|
|
{
|
|
Constants.Conventions.Member.IsApproved,
|
|
new PropertyType(shortStringHelper, Constants.PropertyEditors.Aliases.Boolean, ValueStorageType.Integer, true,
|
|
Constants.Conventions.Member.IsApproved)
|
|
{
|
|
Name = Constants.Conventions.Member.IsApprovedLabel
|
|
}
|
|
},
|
|
{
|
|
Constants.Conventions.Member.IsLockedOut,
|
|
new PropertyType(shortStringHelper, Constants.PropertyEditors.Aliases.Boolean, ValueStorageType.Integer, true,
|
|
Constants.Conventions.Member.IsLockedOut)
|
|
{
|
|
Name = Constants.Conventions.Member.IsLockedOutLabel
|
|
}
|
|
},
|
|
{
|
|
Constants.Conventions.Member.LastLockoutDate,
|
|
new PropertyType(shortStringHelper, Constants.PropertyEditors.Aliases.Label, ValueStorageType.Date, true,
|
|
Constants.Conventions.Member.LastLockoutDate)
|
|
{
|
|
Name = Constants.Conventions.Member.LastLockoutDateLabel,
|
|
DataTypeId = Constants.DataTypes.LabelDateTime
|
|
}
|
|
},
|
|
{
|
|
Constants.Conventions.Member.LastLoginDate,
|
|
new PropertyType(shortStringHelper, Constants.PropertyEditors.Aliases.Label, ValueStorageType.Date, true,
|
|
Constants.Conventions.Member.LastLoginDate)
|
|
{
|
|
Name = Constants.Conventions.Member.LastLoginDateLabel,
|
|
DataTypeId = Constants.DataTypes.LabelDateTime
|
|
}
|
|
},
|
|
{
|
|
Constants.Conventions.Member.LastPasswordChangeDate,
|
|
new PropertyType(shortStringHelper, Constants.PropertyEditors.Aliases.Label, ValueStorageType.Date, true,
|
|
Constants.Conventions.Member.LastPasswordChangeDate)
|
|
{
|
|
Name = Constants.Conventions.Member.LastPasswordChangeDateLabel,
|
|
DataTypeId = Constants.DataTypes.LabelDateTime
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|