mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-22 18:13:23 +00:00
Blindage BDD
This commit is contained in:
parent
d5b731ef06
commit
5951e8195e
7 changed files with 212 additions and 137 deletions
|
|
@ -29,10 +29,17 @@ namespace AideDeJeu.Droid
|
|||
|
||||
public async Task<string> GetDatabasePathAsync(string databaseName)
|
||||
{
|
||||
if (await CheckDatabaseVersionAsync(databaseName))
|
||||
try
|
||||
{
|
||||
await CopyOldToNewFileAsync(databaseName, "db");
|
||||
await CopyOldToNewFileAsync(databaseName, "ver");
|
||||
if (await CheckDatabaseVersionAsync(databaseName))
|
||||
{
|
||||
await CopyOldToNewFileAsync(databaseName, "db");
|
||||
await CopyOldToNewFileAsync(databaseName, "ver");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
return GetNewFilePath(databaseName, "db");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
// Ce code a été généré par un outil.
|
||||
// Version du runtime :4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
||||
// le code est régénéré.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue