Changed how model mappers work for persistence objects so we don't have to statically associate the mapper.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user