Limiting the use of the DatabaseType, so its only used for NText and NChar. Adding LengthAttribute for fixed sized columns.
27 lines
688 B
C#
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; }
|
|
}
|
|
} |