Decorating remaining DTOs for db table creation
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Umbraco.Core.Persistence;
|
||||
using Umbraco.Core.Persistence.DatabaseAnnotations;
|
||||
|
||||
namespace Umbraco.Core.Models.Rdbms
|
||||
{
|
||||
@@ -9,15 +10,18 @@ namespace Umbraco.Core.Models.Rdbms
|
||||
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")]
|
||||
[DatabaseType(DatabaseTypes.Nvarchar, Length = 1000)]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user