Added a name field to text elements
This commit is contained in:
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();
|
||||
}
|
||||
Reference in new issue
Block a user