This commit is contained in:
@@ -547,6 +547,11 @@ namespace AyaNova
|
|||||||
_newLog.LogDebug("DB schema check");
|
_newLog.LogDebug("DB schema check");
|
||||||
AySchema.CheckAndUpdateAsync(dbContext, _newLog).Wait();
|
AySchema.CheckAndUpdateAsync(dbContext, _newLog).Wait();
|
||||||
|
|
||||||
|
// #if (DEBUG)
|
||||||
|
// System.Diagnostics.Debugger.Log(1, "BOOT", "Startup.cs -> RE-PRIMING TRANSLATIONS");
|
||||||
|
// AyaNova.Biz.PrimeData.RePrimeTranslations().Wait();
|
||||||
|
// #endif
|
||||||
|
|
||||||
//Check database integrity
|
//Check database integrity
|
||||||
_newLog.LogDebug("DB integrity check");
|
_newLog.LogDebug("DB integrity check");
|
||||||
DbUtil.CheckFingerPrintAsync(AySchema.EXPECTED_COLUMN_COUNT, AySchema.EXPECTED_INDEX_COUNT, _newLog).Wait();
|
DbUtil.CheckFingerPrintAsync(AySchema.EXPECTED_COLUMN_COUNT, AySchema.EXPECTED_INDEX_COUNT, _newLog).Wait();
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ using Microsoft.Extensions.Logging;
|
|||||||
using AyaNova.Util;
|
using AyaNova.Util;
|
||||||
using AyaNova.Models;
|
using AyaNova.Models;
|
||||||
|
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
|
||||||
namespace AyaNova.Biz
|
namespace AyaNova.Biz
|
||||||
{
|
{
|
||||||
@@ -38,6 +40,22 @@ namespace AyaNova.Biz
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// //used during development so I don't need to keep installing licenses over and over
|
||||||
|
// //just to refresh the translations
|
||||||
|
// public static async Task RePrimeTranslations()
|
||||||
|
// {
|
||||||
|
// //delete all the translations
|
||||||
|
// using (AyContext ct = ServiceProviderProvider.DBContext)
|
||||||
|
// {
|
||||||
|
// await ct.Database.ExecuteSqlRawAsync("delete from atranslationitem;");
|
||||||
|
// await ct.Database.ExecuteSqlRawAsync("delete from atranslation;");
|
||||||
|
// }
|
||||||
|
// //replace
|
||||||
|
// await PrimeTranslations();
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prime the Translations
|
/// Prime the Translations
|
||||||
/// This may be called before there are any users on a fresh db boot
|
/// This may be called before there are any users on a fresh db boot
|
||||||
|
|||||||
@@ -1548,6 +1548,7 @@
|
|||||||
"PageOfPageText": "{0}-{1} von {2}",
|
"PageOfPageText": "{0}-{1} von {2}",
|
||||||
"Loading": "Wird geladen...",
|
"Loading": "Wird geladen...",
|
||||||
"Tags": "Kategorien",
|
"Tags": "Kategorien",
|
||||||
|
"Tag":"Tag",
|
||||||
"UserTypeServiceContractor": "Subunternehmer",
|
"UserTypeServiceContractor": "Subunternehmer",
|
||||||
"AuthorizationRoles": "Autorisierungsrollen",
|
"AuthorizationRoles": "Autorisierungsrollen",
|
||||||
"AuthorizationRoleNoRole": "Keine Rolle",
|
"AuthorizationRoleNoRole": "Keine Rolle",
|
||||||
@@ -1850,5 +1851,6 @@
|
|||||||
"DeleteSelected": "Ausgewählte Elemente löschen",
|
"DeleteSelected": "Ausgewählte Elemente löschen",
|
||||||
"Event": "Veranstaltung",
|
"Event": "Veranstaltung",
|
||||||
"Extensions":"Erweiterungen",
|
"Extensions":"Erweiterungen",
|
||||||
"SelectedItems":"Ausgewählte Elemente"
|
"SelectedItems":"Ausgewählte Elemente",
|
||||||
|
"Remove":"Entfernen"
|
||||||
}
|
}
|
||||||
@@ -1548,6 +1548,7 @@
|
|||||||
"PageOfPageText": "{0}-{1} of {2}",
|
"PageOfPageText": "{0}-{1} of {2}",
|
||||||
"Loading": "Loading...",
|
"Loading": "Loading...",
|
||||||
"Tags": "Tags",
|
"Tags": "Tags",
|
||||||
|
"Tag":"Tag",
|
||||||
"UserTypeServiceContractor": "SubContractor user",
|
"UserTypeServiceContractor": "SubContractor user",
|
||||||
"AuthorizationRoles": "Authorization roles",
|
"AuthorizationRoles": "Authorization roles",
|
||||||
"AuthorizationRoleNoRole": "No role",
|
"AuthorizationRoleNoRole": "No role",
|
||||||
@@ -1850,5 +1851,6 @@
|
|||||||
"DeleteSelected": "Delete selected items",
|
"DeleteSelected": "Delete selected items",
|
||||||
"Event": "Event",
|
"Event": "Event",
|
||||||
"Extensions":"Extensions",
|
"Extensions":"Extensions",
|
||||||
"SelectedItems":"Selected items"
|
"SelectedItems":"Selected items",
|
||||||
|
"Remove":"Remove"
|
||||||
}
|
}
|
||||||
@@ -1548,6 +1548,7 @@
|
|||||||
"PageOfPageText": "{0}-{1} de {2}",
|
"PageOfPageText": "{0}-{1} de {2}",
|
||||||
"Loading": "Cargando...",
|
"Loading": "Cargando...",
|
||||||
"Tags": "Etiquetas",
|
"Tags": "Etiquetas",
|
||||||
|
"Tag":"Etiqueta",
|
||||||
"UserTypeServiceContractor": "Subcontratista",
|
"UserTypeServiceContractor": "Subcontratista",
|
||||||
"AuthorizationRoles": "Roles de autorización",
|
"AuthorizationRoles": "Roles de autorización",
|
||||||
"AuthorizationRoleNoRole": "Sin rol",
|
"AuthorizationRoleNoRole": "Sin rol",
|
||||||
@@ -1850,5 +1851,6 @@
|
|||||||
"DeleteSelected": "Eliminar elementos seleccionados",
|
"DeleteSelected": "Eliminar elementos seleccionados",
|
||||||
"Event": "Evento",
|
"Event": "Evento",
|
||||||
"Extensions":"Extensiones",
|
"Extensions":"Extensiones",
|
||||||
"SelectedItems":"Elementos seleccionados"
|
"SelectedItems":"Elementos seleccionados",
|
||||||
|
"Remove":"Eliminar"
|
||||||
}
|
}
|
||||||
@@ -1548,6 +1548,7 @@
|
|||||||
"PageOfPageText": "{0}-{1} sur {2}",
|
"PageOfPageText": "{0}-{1} sur {2}",
|
||||||
"Loading": "Chargement...",
|
"Loading": "Chargement...",
|
||||||
"Tags": "Balises",
|
"Tags": "Balises",
|
||||||
|
"Tag":"Balise",
|
||||||
"UserTypeServiceContractor": "Sous-traitant",
|
"UserTypeServiceContractor": "Sous-traitant",
|
||||||
"AuthorizationRoles": "Rôles d'autorisation",
|
"AuthorizationRoles": "Rôles d'autorisation",
|
||||||
"AuthorizationRoleNoRole": "Pas de rôle",
|
"AuthorizationRoleNoRole": "Pas de rôle",
|
||||||
@@ -1849,6 +1850,7 @@
|
|||||||
"MoveSelected": "Déplacer les éléments sélectionnés",
|
"MoveSelected": "Déplacer les éléments sélectionnés",
|
||||||
"DeleteSelected": "Supprimer les éléments sélectionnés",
|
"DeleteSelected": "Supprimer les éléments sélectionnés",
|
||||||
"Event": "Un événement",
|
"Event": "Un événement",
|
||||||
"Extensions":"Extensions",
|
"Extensions": "Extensions",
|
||||||
"SelectedItems":"Éléments sélectionnés"
|
"SelectedItems": "Éléments sélectionnés",
|
||||||
|
"Remove": "Retirer"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user