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

@@ -1,5 +1,6 @@
using System;
using System.Runtime.Serialization;
using Umbraco.Core.Persistence.Mappers;
namespace Umbraco.Core.Models
{
@@ -8,6 +9,7 @@ namespace Umbraco.Core.Models
/// </summary>
[Serializable]
[DataContract(IsReference = true)]
[Mapper(typeof(MediaMapper))]
public class Media : ContentBase, IMedia
{
private IMediaType _contentType;