AB4227 - Moved Persistence Repository implementations

This commit is contained in:
Bjarke Berg
2019-12-17 16:30:26 +01:00
parent 03631a1731
commit a22824e33a
77 changed files with 111 additions and 116 deletions

View File

@@ -0,0 +1,74 @@
using System.Collections.Generic;
using Umbraco.Core.Models;
using Umbraco.Core.Strings;
namespace Umbraco.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
}
}
};
}
}