Making a few corrections to the serialization attributes after having tested ContentType Serialization. Enabling bulk saving of new ContentTypes with Parent/Composition dependencies.
18 lines
508 B
C#
18 lines
508 B
C#
using System;
|
|
|
|
namespace Umbraco.Tests.CodeFirst.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
|
public class DescriptionAttribute : Attribute
|
|
{
|
|
public DescriptionAttribute(string description)
|
|
{
|
|
Description = description;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Description of the Property
|
|
/// </summary>
|
|
public string Description { get; private set; }
|
|
}
|
|
} |