Added a multi-line state to the text elements

This commit is contained in:
tsommer committed 2022-09-17 19:23:11 +02:00
1 parent 72aa94bed5
commit 0aeec1885f
13 files changed
+361 -29

No files matched your search

@@ -47,6 +47,7 @@ public sealed class DataContext : DbContext, IDataContext
modelBuilder.Entity<TextElement>().HasIndex(n => n.Id);
modelBuilder.Entity<TextElement>().HasIndex(n => n.Code);
modelBuilder.Entity<TextElement>().HasIndex(n => n.Name);
modelBuilder.Entity<TextElement>().HasIndex(n => n.IsMultiLine);
modelBuilder.Entity<TextElement>().Navigation(n => n.Section).AutoInclude();
#endregion
@@ -11,6 +11,8 @@ public sealed class TextElement
public string Code { get; set; } = string.Empty;
public bool IsMultiLine { get; set; } = false;
public Section Section { get; set; }
public List<Translation> Translations { get; set; } = new();