Add optional manual mode per translation and culture
This commit is contained in:
8 files changed
+326
-8
No files matched your search
@@ -58,6 +58,7 @@ public sealed class DataContext : DbContext, IDataContext
|
||||
modelBuilder.Entity<Translation>().HasIndex(n => n.Id);
|
||||
modelBuilder.Entity<Translation>().HasIndex(n => n.Culture);
|
||||
modelBuilder.Entity<Translation>().HasIndex(n => n.Text);
|
||||
modelBuilder.Entity<Translation>().HasIndex(n => n.TranslateManual);
|
||||
modelBuilder.Entity<Translation>().Navigation(n => n.TextElement).AutoInclude();
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -9,4 +9,6 @@ public sealed class Translation
|
||||
public string Culture { get; set; } = "en-US";
|
||||
|
||||
public string Text { get; set; } = string.Empty;
|
||||
|
||||
public bool TranslateManual { get; set; } = false;
|
||||
}
|
||||
Reference in new issue
Block a user