21 lines
604 B
C#
21 lines
604 B
C#
using System.Data;
|
|
using Umbraco.Core.Persistence;
|
|
using Umbraco.Core.Persistence.DatabaseAnnotations;
|
|
|
|
namespace Umbraco.Core.Models.Rdbms
|
|
{
|
|
[TableName("cmsContentXml")]
|
|
[PrimaryKey("nodeId", autoIncrement = false)]
|
|
[ExplicitColumns]
|
|
internal class ContentXmlDto
|
|
{
|
|
[Column("nodeId")]
|
|
[PrimaryKeyColumn(AutoIncrement = false)]
|
|
[ForeignKey(typeof(ContentDto), Column = "nodeId")]
|
|
public int NodeId { get; set; }
|
|
|
|
[Column("xml")]
|
|
[SpecialDbType(SpecialDbTypes.NTEXT)]
|
|
public string Xml { get; set; }
|
|
}
|
|
} |