2015-11-13 16:33:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using Umbraco.Core.Models.EntityBase;
|
2015-11-10 12:30:22 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents a folder for organizing entities such as content types and data types
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public sealed class EntityContainer : UmbracoEntity, IAggregateRoot
|
|
|
|
|
|
{
|
2015-11-10 16:14:03 +01:00
|
|
|
|
public EntityContainer()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2015-11-13 16:33:54 +01:00
|
|
|
|
public EntityContainer(int id, Guid uniqueId, int parentId, string name, int userId, string path)
|
2015-11-10 12:30:22 +01:00
|
|
|
|
{
|
2015-11-10 16:14:03 +01:00
|
|
|
|
Id = id;
|
2015-11-13 16:33:54 +01:00
|
|
|
|
Key = uniqueId;
|
2015-11-10 12:30:22 +01:00
|
|
|
|
ParentId = parentId;
|
|
|
|
|
|
Name = name;
|
|
|
|
|
|
CreatorId = userId;
|
2015-11-10 16:14:03 +01:00
|
|
|
|
Path = path;
|
2015-11-10 12:30:22 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|