Merge branch 'Release/TaskExecMan04'
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<RootNamespace>MP.Prog</RootNamespace>
|
||||
<Version>6.16.2410.2811</Version>
|
||||
<Version>6.16.2410.2812</Version>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo gestione Programmi MAPO</i>
|
||||
<h4>Versione: 6.16.2410.2811</h4>
|
||||
<h4>Versione: 6.16.2410.2812</h4>
|
||||
<br />
|
||||
Note di rilascio:
|
||||
<ul>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2410.2811
|
||||
6.16.2410.2812
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2410.2811</version>
|
||||
<version>6.16.2410.2812</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-PROG/stable/LAST/MP.Prog.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-PROG/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -25,21 +25,54 @@ namespace MP.TaskMan
|
||||
|
||||
private bool DesignTime = false;
|
||||
|
||||
[Obsolete("Impiegato solo x DB migrations", false)]
|
||||
/// <summary>
|
||||
/// Indispensabile x generazione migrations EFCore
|
||||
/// </summary>
|
||||
[Obsolete("This constructor should never be used directly, and is only needed to generate entityframework stuff. Connection string can be adapted as pleased.", false)]
|
||||
public TaskContext()
|
||||
{
|
||||
#if DEBUG
|
||||
DesignTime = true;
|
||||
try
|
||||
{
|
||||
// se non ci fosse... crea o migra!
|
||||
Database.Migrate();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
Log.Error($"Exception during context initialization 01.A{Environment.NewLine}{exc}");
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
public TaskContext(IConfiguration configuration)
|
||||
{
|
||||
_configuration = configuration;
|
||||
try
|
||||
{
|
||||
// se non ci fosse... crea o migra!
|
||||
Database.Migrate();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
Log.Error($"Exception during context initialization 01.B{Environment.NewLine}{exc}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public TaskContext(DbContextOptions<TaskContext> options) : base(options)
|
||||
{
|
||||
try
|
||||
{
|
||||
// se non ci fosse... crea o migra!
|
||||
Database.Migrate();
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
Log.Error($"Exception during context initialization 01.C{Environment.NewLine}{exc}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion Public Constructors
|
||||
|
||||
Reference in New Issue
Block a user