diff --git a/StandManager.Domain/Entita/ProvinciaIstat.cs b/StandManager.Domain/Entita/ProvinciaIstat.cs
index ae4af66..1a31b4b 100644
--- a/StandManager.Domain/Entita/ProvinciaIstat.cs
+++ b/StandManager.Domain/Entita/ProvinciaIstat.cs
@@ -4,6 +4,6 @@ namespace StandManager.Domain.Entita;
public class ProvinciaIstat : EntitaBase
{
- public string Istat { get; set; }
- public string Comune { get; set; }
+ public string Sigla { get; set; }
+ public string Provincia { get; set; }
}
\ No newline at end of file
diff --git a/StandManager.Infrastructure/Migrations/20251222141858_Province.Designer.cs b/StandManager.Infrastructure/Migrations/20251222142449_ProvinciaIstat.Designer.cs
similarity index 99%
rename from StandManager.Infrastructure/Migrations/20251222141858_Province.Designer.cs
rename to StandManager.Infrastructure/Migrations/20251222142449_ProvinciaIstat.Designer.cs
index 7a067d0..7948678 100644
--- a/StandManager.Infrastructure/Migrations/20251222141858_Province.Designer.cs
+++ b/StandManager.Infrastructure/Migrations/20251222142449_ProvinciaIstat.Designer.cs
@@ -12,8 +12,8 @@ using StandManager.Infrastructure.DAL.Context;
namespace StandManager.Infrastructure.Migrations
{
[DbContext(typeof(StandManagerDbContext))]
- [Migration("20251222141858_Province")]
- partial class Province
+ [Migration("20251222142449_ProvinciaIstat")]
+ partial class ProvinciaIstat
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@@ -535,10 +535,6 @@ namespace StandManager.Infrastructure.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
- b.Property("Comune")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
b.Property("DataCreazione")
.HasColumnType("datetime2");
@@ -554,7 +550,11 @@ namespace StandManager.Infrastructure.Migrations
b.Property("IdUtenteModifica")
.HasColumnType("uniqueidentifier");
- b.Property("Istat")
+ b.Property("Provincia")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Sigla")
.IsRequired()
.HasColumnType("nvarchar(max)");
diff --git a/StandManager.Infrastructure/Migrations/20251222141858_Province.cs b/StandManager.Infrastructure/Migrations/20251222142449_ProvinciaIstat.cs
similarity index 91%
rename from StandManager.Infrastructure/Migrations/20251222141858_Province.cs
rename to StandManager.Infrastructure/Migrations/20251222142449_ProvinciaIstat.cs
index a7b9c71..998038e 100644
--- a/StandManager.Infrastructure/Migrations/20251222141858_Province.cs
+++ b/StandManager.Infrastructure/Migrations/20251222142449_ProvinciaIstat.cs
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace StandManager.Infrastructure.Migrations
{
///
- public partial class Province : Migration
+ public partial class ProvinciaIstat : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
@@ -16,8 +16,8 @@ namespace StandManager.Infrastructure.Migrations
columns: table => new
{
Id = table.Column(type: "uniqueidentifier", nullable: false),
- Istat = table.Column(type: "nvarchar(max)", nullable: false),
- Comune = table.Column(type: "nvarchar(max)", nullable: false),
+ Sigla = table.Column(type: "nvarchar(max)", nullable: false),
+ Provincia = table.Column(type: "nvarchar(max)", nullable: false),
DataCreazione = table.Column(type: "datetime2", nullable: false),
DataModifica = table.Column(type: "datetime2", nullable: true),
Eliminato = table.Column(type: "bit", nullable: false),
diff --git a/StandManager.Infrastructure/Migrations/StandManagerDbContextModelSnapshot.cs b/StandManager.Infrastructure/Migrations/StandManagerDbContextModelSnapshot.cs
index fb45de4..ceac4ae 100644
--- a/StandManager.Infrastructure/Migrations/StandManagerDbContextModelSnapshot.cs
+++ b/StandManager.Infrastructure/Migrations/StandManagerDbContextModelSnapshot.cs
@@ -532,10 +532,6 @@ namespace StandManager.Infrastructure.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
- b.Property("Comune")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
b.Property("DataCreazione")
.HasColumnType("datetime2");
@@ -551,7 +547,11 @@ namespace StandManager.Infrastructure.Migrations
b.Property("IdUtenteModifica")
.HasColumnType("uniqueidentifier");
- b.Property("Istat")
+ b.Property("Provincia")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Sigla")
.IsRequired()
.HasColumnType("nvarchar(max)");