Files
Umbraco-CMS/src/Umbraco.Web/Models/ContentEditing/ContentPropertyBasic.cs

31 lines
906 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.Models.ContentEditing
{
/// <summary>
/// Represents a content property to be saved
/// </summary>
[DataContract(Name = "property", Namespace = "")]
2013-06-10 10:36:59 -02:00
public class ContentPropertyBasic
{
[DataMember(Name = "id", IsRequired = true)]
[Required]
public int Id { get; set; }
[DataMember(Name = "value")]
public string Value { get; set; }
[DataMember(Name = "alias", IsRequired = true)]
[Required(AllowEmptyStrings = false)]
public string Alias { get; set; }
/// <summary>
/// Used internally during model mapping
/// </summary>
[IgnoreDataMember]
internal PropertyEditor PropertyEditor { get; set; }
}
}