Bozza indice x dt + plantlog

This commit is contained in:
Samuele Locatelli
2024-06-03 20:15:50 +02:00
parent 1d1112cc46
commit eee32daf4b
7 changed files with 27 additions and 23 deletions
+3 -1
View File
@@ -20,7 +20,8 @@ namespace GWMS.Data.DatabaseModels
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int PlantDataId { get; set; }
//[Index("IX_PlantLog_PlantDt", 2)]
public DateTime DtEvent { get; set; } = DateTime.Now;
/// <summary>
@@ -29,6 +30,7 @@ namespace GWMS.Data.DatabaseModels
[MaxLength(250)]
public string FluxType { get; set; } = "ND";
//[Index("IX_PlantLog_PlantDt", 1)]
public int PlantId { get; set; }
public double ValNumber { get; set; } = 0;
+1 -1
View File
@@ -100,7 +100,7 @@ namespace GWMS.Data
{ }
if (!optionsBuilder.IsConfigured)
{
//connString = "Server=localhost;port=3306;database=GWMS;user=GWMS;pwd=GWMS_secret_pwd;sslmode=None;";
connString = "Server=localhost;port=3306;database=GWMS_PZZFRR;user=user_PZZFRR;pwd=pwd_M3T@n0;sslmode=None;";
var serverVersion = ServerVersion.AutoDetect(connString);
optionsBuilder.UseMySql(connString, serverVersion);
}
@@ -5,6 +5,8 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace GWMS.Data.Migrations
{
[DbContext(typeof(GWMSContext))]
@@ -14,8 +16,8 @@ namespace GWMS.Data.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.10");
.HasAnnotation("ProductVersion", "5.0.10")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("GWMS.Data.DatabaseModels.AlarmLogModel", b =>
{
@@ -46,7 +48,7 @@ namespace GWMS.Data.Migrations
b.HasIndex("PlantId");
b.ToTable("AlarmLog");
b.ToTable("AlarmLog", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.AnKeyValModel", b =>
@@ -72,7 +74,7 @@ namespace GWMS.Data.Migrations
b.HasKey("KeyName");
b.ToTable("AnKeyVal");
b.ToTable("AnKeyVal", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.ConfigModel", b =>
@@ -96,7 +98,7 @@ namespace GWMS.Data.Migrations
b.HasKey("KeyName");
b.ToTable("Config");
b.ToTable("Config", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.ItemModel", b =>
@@ -123,7 +125,7 @@ namespace GWMS.Data.Migrations
b.HasKey("ItemId");
b.ToTable("Items");
b.ToTable("Items", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.ListValModel", b =>
@@ -154,7 +156,7 @@ namespace GWMS.Data.Migrations
b.HasKey("TabName", "FieldName", "Val");
b.ToTable("ListVal");
b.ToTable("ListVal", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.OrderModel", b =>
@@ -212,7 +214,7 @@ namespace GWMS.Data.Migrations
b.HasIndex("TransporterId");
b.ToTable("Order");
b.ToTable("Order", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.ParamSendModel", b =>
@@ -240,7 +242,7 @@ namespace GWMS.Data.Migrations
b.HasKey("PlantId", "ParamUid");
b.ToTable("ParamSend");
b.ToTable("ParamSend", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.ParamSetModel", b =>
@@ -267,7 +269,7 @@ namespace GWMS.Data.Migrations
b.HasKey("ParamSetId");
b.ToTable("ParamSet");
b.ToTable("ParamSet", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.PlantDetailModel", b =>
@@ -295,7 +297,7 @@ namespace GWMS.Data.Migrations
b.HasKey("PlantId");
b.ToTable("PlantDetail");
b.ToTable("PlantDetail", (string)null);
b.HasData(
new
@@ -363,7 +365,7 @@ namespace GWMS.Data.Migrations
b.HasIndex("PlantId");
b.ToTable("PlantLog");
b.ToTable("PlantLog", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.PlantStatusModel", b =>
@@ -387,7 +389,7 @@ namespace GWMS.Data.Migrations
b.HasKey("PlantId", "FluxType");
b.ToTable("PlantStatus");
b.ToTable("PlantStatus", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.RebootLogModel", b =>
@@ -409,7 +411,7 @@ namespace GWMS.Data.Migrations
b.HasKey("RecordId");
b.ToTable("RebootLog");
b.ToTable("RebootLog", (string)null);
});
modelBuilder.Entity("GWMS.Data.DatabaseModels.SupplierModel", b =>
@@ -428,7 +430,7 @@ namespace GWMS.Data.Migrations
b.HasKey("SupplierId");
b.ToTable("Supplier");
b.ToTable("Supplier", (string)null);
b.HasData(
new
@@ -470,7 +472,7 @@ namespace GWMS.Data.Migrations
b.HasKey("TransporterId");
b.ToTable("Transporter");
b.ToTable("Transporter", (string)null);
b.HasData(
new
@@ -526,7 +528,7 @@ namespace GWMS.Data.Migrations
b.HasIndex("TransporterId");
b.ToTable("WeekPlan");
b.ToTable("WeekPlan", (string)null);
b.HasData(
new
+1 -1
View File
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0.2406.0319</Version>
<Version>1.0.2406.0320</Version>
<UserSecretsId>95c9f021-52d1-4390-a670-5810b7b777b0</UserSecretsId>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>GWMS - Gas Warehouse Management System</i>
<h4>Versione: 1.0.2406.0319</h4>
<h4>Versione: 1.0.2406.0320</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.0.2406.0319
1.0.2406.0320
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.0.2406.0319</version>
<version>1.0.2406.0320</version>
<url>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html</changelog>
<mandatory>false</mandatory>