Inizio update riferimenti

This commit is contained in:
Samuele Locatelli
2025-07-22 19:13:53 +02:00
parent 93c9fdf132
commit b3126f269b
54 changed files with 73 additions and 70 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
using EgwMultiEngineManager;
using EgwCoreLib.Lux.Data.Services;
using EgwMultiEngineManager;
using Lux.Data;
using Lux.Data.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion.Internal;
+1 -1
View File
@@ -65,7 +65,7 @@
<ItemGroup>
<ProjectReference Include="..\EgwCoreLib.Lux.Core\EgwCoreLib.Lux.Core.csproj" />
<ProjectReference Include="..\Lux.Data\Lux.Data.csproj" />
<ProjectReference Include="..\Lux.Data\EgwCoreLib.Lux.Data.csproj" />
</ItemGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
using EgwCoreLib.Lux.Data.Services;
using EgwMultiEngineManager;
using Lux.API.Services;
using Lux.Data.Services;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.OpenApi.Models;
using NLog;
+2 -2
View File
@@ -1,6 +1,6 @@
using EgwMultiEngineManager;
using EgwCoreLib.Lux.Data.Services;
using EgwMultiEngineManager;
using Lux.Data;
using Lux.Data.Services;
using Newtonsoft.Json;
using NLog;
using StackExchange.Redis;
+2 -2
View File
@@ -1,5 +1,5 @@
using Lux.Data;
using Lux.Data.Services;
using EgwCoreLib.Lux.Data.Services;
using Lux.Data;
namespace Lux.API.Services
{
+1 -1
View File
@@ -5,7 +5,7 @@ VisualStudioVersion = 17.14.36203.30
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EgwCoreLib.Lux.Core", "EgwCoreLib.Lux.Core\EgwCoreLib.Lux.Core.csproj", "{CCE87D58-1E6C-47B3-A28C-65BFCF5F1D0C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lux.Data", "Lux.Data\Lux.Data.csproj", "{9BA9FBAC-0D76-41CA-9970-A8DB982CC5F0}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EgwCoreLib.Lux.Data", "Lux.Data\EgwCoreLib.Lux.Data.csproj", "{9BA9FBAC-0D76-41CA-9970-A8DB982CC5F0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApp", "TestApp\TestApp.csproj", "{E94496AD-22BB-4443-9A81-11D19AFBE0A3}"
EndProject
+2 -2
View File
@@ -1,4 +1,4 @@
using Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.DbModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using System;
@@ -7,7 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data
namespace EgwCoreLib.Lux.Data
{
public partial class AdminContext : DbContext
{
+3 -3
View File
@@ -1,4 +1,4 @@
using Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.DbModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using NLog;
@@ -9,7 +9,7 @@ using System.Text;
using System.Threading.Tasks;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace Lux.Data.Controllers
namespace EgwCoreLib.Lux.Data.Controllers
{
public class LuxController
{
@@ -128,7 +128,7 @@ namespace Lux.Data.Controllers
currRec.Description = newRec.Description;
currRec.IsService = newRec.IsService;
currRec.Margin = newRec.Margin;
dbCtx.Entry(currRec).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
dbCtx.Entry(currRec).State = EntityState.Modified;
}
// se mancasse --> aggiungo
else
+3 -3
View File
@@ -1,4 +1,4 @@
using Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.DbModel;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using NLog;
@@ -8,12 +8,12 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data
namespace EgwCoreLib.Lux.Data
{
public partial class DataLayerContext: DbContext
{
private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
private static Logger Log = LogManager.GetCurrentClassLogger();
private IConfiguration _configuration;
+2 -2
View File
@@ -6,13 +6,13 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data
namespace EgwCoreLib.Lux.Data
{
public class DbAdmin : IDisposable
{
#region Private Fields
private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
private static Logger Log = LogManager.GetCurrentClassLogger();
#endregion Private Fields
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data
namespace EgwCoreLib.Lux.Data
{
public class DbConfig
{
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{ // <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
+1 -1
View File
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
[Table("JobList")]
+1 -1
View File
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
[Table("JobRowItemList")]
public class JobRowItemModel
+1 -1
View File
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
[Table("JobRowList")]
public class JobRowModel
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{ // <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
+1 -1
View File
@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using static EgwCoreLib.Lux.Core.Enum;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -7,7 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using static EgwCoreLib.Lux.Core.Enum;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -7,7 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
[Table("RegPhase")]
+1 -1
View File
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
/// <summary>
/// Tabella delel effettiva righe della fgasi di lavorazione x ogni item da produrre
+1 -1
View File
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
[Table("RegResource")]
public class ResourceModel
+1 -1
View File
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
+1 -1
View File
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.DbModel
namespace EgwCoreLib.Lux.Data.DbModel
{
/// <summary>
/// Tabella dei USER di MySql
+1 -1
View File
@@ -1,6 +1,6 @@
// <auto-generated />
using System;
using Lux.Data;
using EgwCoreLib.Lux.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -1,6 +1,6 @@
// <auto-generated />
using System;
using Lux.Data;
using EgwCoreLib.Lux.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
+2 -2
View File
@@ -1,4 +1,4 @@
using Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.DbModel;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data
namespace EgwCoreLib.Lux.Data
{
public static class ModelBuilderExtensions
{
+1 -1
View File
@@ -10,7 +10,7 @@ using System.Runtime;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.Services
namespace EgwCoreLib.Lux.Data.Services
{
public class BaseServ
{
+5 -4
View File
@@ -1,4 +1,5 @@
using Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.Controllers;
using EgwCoreLib.Lux.Data.DbModel;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using NLog;
@@ -11,7 +12,7 @@ using System.Text;
using System.Threading.Tasks;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace Lux.Data.Services
namespace EgwCoreLib.Lux.Data.Services
{
public class DataLayerServices : BaseServ
{
@@ -27,7 +28,7 @@ namespace Lux.Data.Services
}
else
{
dbController = new Controllers.LuxController();
dbController = new LuxController();
//dbController = new Controllers.LuxController(configuration);
StringBuilder sb = new StringBuilder();
sb.AppendLine($"DataLayerServices | LuxController OK");
@@ -39,7 +40,7 @@ namespace Lux.Data.Services
#region Public Properties
public static Controllers.LuxController dbController { get; set; } = null!;
public static LuxController dbController { get; set; } = null!;
#endregion Public Properties
+1 -1
View File
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.Services
namespace EgwCoreLib.Lux.Data.Services
{
/// <summary>
/// Interfaccia servizio REDIS x pub/sub e caching
+1 -1
View File
@@ -8,7 +8,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.Services
namespace EgwCoreLib.Lux.Data.Services
{
public class ImageCacheService
{
+1 -1
View File
@@ -10,7 +10,7 @@ using System.Runtime;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.Services
namespace EgwCoreLib.Lux.Data.Services
{
/// <summary>
/// Implementazione interfaccia REDIS:
@@ -8,7 +8,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lux.Data.Services
namespace EgwCoreLib.Lux.Data.Services
{
public class RedisSubscriptionManager
{
+2 -1
View File
@@ -1,4 +1,5 @@
<div class="alert alert-warning text-center display-4">
@using EgwCoreLib.Lux.Data.DbModel
<div class="alert alert-warning text-center display-4">
display check finali
<button class="btn btn-sm btn-primary" title="Reset selezione" @onclick="DoCancel"><i class="fa-solid fa-arrow-rotate-right"></i></button>
</div>
+2 -2
View File
@@ -1,5 +1,5 @@
using Lux.Data.DbModel;
using Lux.Data.Services;
using EgwCoreLib.Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.Services;
using Microsoft.AspNetCore.Components;
using System.Threading.Tasks;
+2 -2
View File
@@ -1,5 +1,5 @@
using Lux.Data.DbModel;
using Lux.Data.Services;
using EgwCoreLib.Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.Services;
using Microsoft.AspNetCore.Components;
using static EgwCoreLib.Lux.Core.Enum;
+2 -2
View File
@@ -1,6 +1,6 @@
using EgwCoreLib.Lux.Data.DbModel;
using EgwCoreLib.Lux.Data.Services;
using EgwCoreLib.Razor;
using Lux.Data.DbModel;
using Lux.Data.Services;
using Microsoft.AspNetCore.Components;
using NLog.LayoutRenderers;
+1
View File
@@ -1,4 +1,5 @@
@page "/ResetCache"
@using EgwCoreLib.Lux.Data.Services
@using Lux.Data.Services
<LoadingData Title="Resetting Cache..." DisplaySize="LoadingData.CtrlSize.Large" DisplayMode="LoadingData.SpinMode.BounceLine"></LoadingData>
+3 -3
View File
@@ -9,9 +9,9 @@
@using Microsoft.JSInterop
@using EgwCoreLib.Razor
@using EgwCoreLib.Utils
@using Lux.Data
@using Lux.Data.Controllers
@using Lux.Data.DbModel
@using EgwCoreLib.Lux.Data
@using EgwCoreLib.Lux.Data.Controllers
@using EgwCoreLib.Lux.Data.DbModel
@using Lux.UI
@using Lux.UI.Client
@using Lux.UI.Components
+1 -1
View File
@@ -31,7 +31,7 @@
<ItemGroup>
<ProjectReference Include="..\EgwCoreLib.Lux.Core\EgwCoreLib.Lux.Core.csproj" />
<ProjectReference Include="..\EgwCoreLib.Lux.Core\EgwCoreLib.Lux.Core.csproj" />
<ProjectReference Include="..\Lux.Data\Lux.Data.csproj" />
<ProjectReference Include="..\Lux.Data\EgwCoreLib.Lux.Data.csproj" />
<ProjectReference Include="..\Lux.UI.Client\Lux.UI.Client.csproj" />
</ItemGroup>
+1 -1
View File
@@ -1,4 +1,4 @@
using Lux.Data.Services;
using EgwCoreLib.Lux.Data.Services;
using Lux.UI.Client.Pages;
using Lux.UI.Components;
using Lux.UI.Components.Account;
+1 -1
View File
@@ -9,7 +9,7 @@
<ItemGroup>
<ProjectReference Include="..\EgwCoreLib.Lux.Core\EgwCoreLib.Lux.Core.csproj" />
<ProjectReference Include="..\Lux.Data\Lux.Data.csproj" />
<ProjectReference Include="..\EgwCoreLib.Lux.Data\Lux.Data.csproj" />
</ItemGroup>
</Project>