Changed how model mappers work for persistence objects so we don't have to statically associate the mapper.

This commit is contained in:
Shannon Deminick
2013-03-07 22:27:47 +06:00
parent 0230bedeb6
commit da331b7408
57 changed files with 218 additions and 142 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Umbraco.Core.Models.EntityBase;
using Umbraco.Core.Persistence.Mappers;
namespace Umbraco.Core.Models.Membership
{
@@ -15,6 +16,7 @@ namespace Umbraco.Core.Models.Membership
/// </remarks>
[Serializable]
[DataContract(IsReference = true)]
[Mapper(typeof(UserMapper))]
internal class User : UserProfile, IUser
{
private bool _hasIdentity;