Added a name field to text elements

This commit is contained in:
tsommer committed 2022-07-10 19:30:22 +02:00
1 parent 4b2d3a10a3
commit aa641770d2
5 files changed
+246 -1

No files matched your search

@@ -44,6 +44,7 @@ public sealed class DataContext : DbContext
modelBuilder.Entity<TextElement>().HasIndex(n => n.Id);
modelBuilder.Entity<TextElement>().HasIndex(n => n.Code);
modelBuilder.Entity<TextElement>().HasIndex(n => n.Name);
#endregion
@@ -7,9 +7,11 @@ public sealed class TextElement
[Key]
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Code { get; set; } = string.Empty;
public Section Section { get; set; }
public List<Translation> Translations { get; set; }
public List<Translation> Translations { get; set; } = new();
}