Files
Umbraco-CMS/src/Umbraco.Core/Models/Rdbms/LanguageTextDto.cs
sitereactor 2545de57e0 Refactoring usage of DatabaseType - more convention based.
Limiting the use of the DatabaseType, so its only used for NText and NChar.
Adding LengthAttribute for fixed sized columns.
2012-10-22 12:52:29 -02:00

27 lines
688 B
C#

using System;
using Umbraco.Core.Persistence;
using Umbraco.Core.Persistence.DatabaseAnnotations;
namespace Umbraco.Core.Models.Rdbms
{
[TableName("cmsLanguageText")]
[PrimaryKey("pk")]
[ExplicitColumns]
internal class LanguageTextDto
{
[Column("pk")]
[PrimaryKeyColumn]
public int PrimaryKey { get; set; }
[Column("languageId")]
public int LanguageId { get; set; }
[Column("UniqueId")]
[ForeignKey(typeof(DictionaryDto), Column = "id")]
public Guid UniqueId { get; set; }
[Column("value")]
[Length(1000)]
public string Value { get; set; }
}
}