diff --git a/CompanyManagment.EFCore/Migrations/20251207125001_add camera bug report.cs b/CompanyManagment.EFCore/Migrations/20251207125001_add camera bug report.cs
deleted file mode 100644
index 68c0b281..00000000
--- a/CompanyManagment.EFCore/Migrations/20251207125001_add camera bug report.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace CompanyManagment.EFCore.Migrations
-{
- ///
- public partial class addcamerabugreport : Migration
- {
- ///
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "CameraBugReports",
- columns: table => new
- {
- id = table.Column(type: "bigint", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- UpdateDate = table.Column(type: "datetime2", nullable: true),
- CreationDate = table.Column(type: "datetime2", nullable: false),
- StackTrace = table.Column(type: "ntext", nullable: true),
- Status = table.Column(type: "int", nullable: false),
- Priority = table.Column(type: "int", nullable: false),
- Type = table.Column(type: "int", nullable: false),
- Flavor = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- LastUpdateTime = table.Column(type: "datetime2", nullable: false),
- InstallTime = table.Column(type: "datetime2", nullable: false),
- PackageName = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true),
- BuildNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- AppVersion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- NetworkType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- IsCharging = table.Column(type: "bit", nullable: false),
- BatteryLevel = table.Column(type: "int", nullable: false),
- StorageInMB = table.Column(type: "int", nullable: false),
- MemoryInMB = table.Column(type: "int", nullable: false),
- ScreenResolution = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- DeviceId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
- Manufacturer = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
- Platform = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- OsVersion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
- DeviceModel = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
- AccountId = table.Column(type: "bigint", nullable: true),
- UserEmail = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false),
- Description = table.Column(type: "ntext", nullable: false),
- Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_CameraBugReports", x => x.id);
- });
-
- migrationBuilder.CreateTable(
- name: "CameraBugReportLogs",
- columns: table => new
- {
- id = table.Column(type: "bigint", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- CameraBugReportId = table.Column(type: "bigint", nullable: false),
- Message = table.Column(type: "ntext", nullable: false),
- Timestamp = table.Column(type: "datetime2", nullable: false),
- CreationDate = table.Column(type: "datetime2", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_CameraBugReportLogs", x => x.id);
- table.ForeignKey(
- name: "FK_CameraBugReportLogs_CameraBugReports_CameraBugReportId",
- column: x => x.CameraBugReportId,
- principalTable: "CameraBugReports",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateTable(
- name: "CameraBugReportScreenshots",
- columns: table => new
- {
- id = table.Column(type: "bigint", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- CameraBugReportId = table.Column(type: "bigint", nullable: false),
- Base64Data = table.Column(type: "ntext", nullable: false),
- FileName = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true),
- UploadDate = table.Column(type: "datetime2", nullable: false),
- CreationDate = table.Column(type: "datetime2", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_CameraBugReportScreenshots", x => x.id);
- table.ForeignKey(
- name: "FK_CameraBugReportScreenshots_CameraBugReports_CameraBugReportId",
- column: x => x.CameraBugReportId,
- principalTable: "CameraBugReports",
- principalColumn: "id",
- onDelete: ReferentialAction.Cascade);
- });
-
- migrationBuilder.CreateIndex(
- name: "IX_CameraBugReportLogs_CameraBugReportId",
- table: "CameraBugReportLogs",
- column: "CameraBugReportId");
-
- migrationBuilder.CreateIndex(
- name: "IX_CameraBugReportScreenshots_CameraBugReportId",
- table: "CameraBugReportScreenshots",
- column: "CameraBugReportId");
- }
-
- ///
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "CameraBugReportLogs");
-
- migrationBuilder.DropTable(
- name: "CameraBugReportScreenshots");
-
- migrationBuilder.DropTable(
- name: "CameraBugReports");
- }
- }
-}
diff --git a/CompanyManagment.EFCore/Migrations/20251207125001_add camera bug report.Designer.cs b/CompanyManagment.EFCore/Migrations/20251213184424_testmig.Designer.cs
similarity index 99%
rename from CompanyManagment.EFCore/Migrations/20251207125001_add camera bug report.Designer.cs
rename to CompanyManagment.EFCore/Migrations/20251213184424_testmig.Designer.cs
index 8f69cd97..4f62788b 100644
--- a/CompanyManagment.EFCore/Migrations/20251207125001_add camera bug report.Designer.cs
+++ b/CompanyManagment.EFCore/Migrations/20251213184424_testmig.Designer.cs
@@ -13,15 +13,15 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace CompanyManagment.EFCore.Migrations
{
[DbContext(typeof(CompanyContext))]
- [Migration("20251207125001_add camera bug report")]
- partial class addcamerabugreport
+ [Migration("20251213184424_testmig")]
+ partial class testmig
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "8.0.10")
+ .HasAnnotation("ProductVersion", "10.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@@ -313,44 +313,36 @@ namespace CompanyManagment.EFCore.Migrations
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReport", b =>
{
- b.Property("id")
+ b.Property("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+ .HasColumnType("uniqueidentifier");
b.Property("AccountId")
.HasColumnType("bigint");
b.Property("AppVersion")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("BatteryLevel")
.HasColumnType("int");
b.Property("BuildNumber")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Description")
- .IsRequired()
- .HasColumnType("ntext");
+ .HasColumnType("nvarchar(max)");
b.Property("DeviceId")
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)");
+ .HasColumnType("nvarchar(max)");
b.Property("DeviceModel")
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
+ .HasColumnType("nvarchar(max)");
b.Property("Flavor")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("InstallTime")
.HasColumnType("datetime2");
@@ -362,37 +354,31 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("datetime2");
b.Property("Manufacturer")
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
+ .HasColumnType("nvarchar(max)");
b.Property("MemoryInMB")
.HasColumnType("int");
b.Property("NetworkType")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("OsVersion")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("PackageName")
- .HasMaxLength(150)
- .HasColumnType("nvarchar(150)");
+ .HasColumnType("nvarchar(max)");
b.Property("Platform")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("Priority")
.HasColumnType("int");
b.Property("ScreenResolution")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("StackTrace")
- .HasColumnType("ntext");
+ .HasColumnType("nvarchar(max)");
b.Property("Status")
.HasColumnType("int");
@@ -401,9 +387,7 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("int");
b.Property("Title")
- .IsRequired()
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)");
+ .HasColumnType("nvarchar(max)");
b.Property("Type")
.HasColumnType("int");
@@ -412,13 +396,11 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("datetime2");
b.Property("UserEmail")
- .IsRequired()
- .HasMaxLength(150)
- .HasColumnType("nvarchar(150)");
+ .HasColumnType("nvarchar(max)");
- b.HasKey("id");
+ b.HasKey("Id");
- b.ToTable("CameraBugReports", (string)null);
+ b.ToTable("CameraBugReports");
});
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportLog", b =>
@@ -429,15 +411,14 @@ namespace CompanyManagment.EFCore.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
- b.Property("CameraBugReportId")
- .HasColumnType("bigint");
+ b.Property("CameraBugReportId")
+ .HasColumnType("uniqueidentifier");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Message")
- .IsRequired()
- .HasColumnType("ntext");
+ .HasColumnType("nvarchar(max)");
b.Property("Timestamp")
.HasColumnType("datetime2");
@@ -446,7 +427,7 @@ namespace CompanyManagment.EFCore.Migrations
b.HasIndex("CameraBugReportId");
- b.ToTable("CameraBugReportLogs", (string)null);
+ b.ToTable("CameraBugReportLogs");
});
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportScreenshot", b =>
@@ -458,18 +439,16 @@ namespace CompanyManagment.EFCore.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
b.Property("Base64Data")
- .IsRequired()
- .HasColumnType("ntext");
+ .HasColumnType("nvarchar(max)");
- b.Property("CameraBugReportId")
- .HasColumnType("bigint");
+ b.Property("CameraBugReportId")
+ .HasColumnType("uniqueidentifier");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("FileName")
- .HasMaxLength(255)
- .HasColumnType("nvarchar(255)");
+ .HasColumnType("nvarchar(max)");
b.Property("UploadDate")
.HasColumnType("datetime2");
@@ -478,7 +457,7 @@ namespace CompanyManagment.EFCore.Migrations
b.HasIndex("CameraBugReportId");
- b.ToTable("CameraBugReportScreenshots", (string)null);
+ b.ToTable("CameraBugReportScreenshots");
});
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
@@ -4180,7 +4159,7 @@ namespace CompanyManagment.EFCore.Migrations
.HasMaxLength(4)
.HasColumnType("nvarchar(4)");
- b.ComplexProperty>("Debt", "Company.Domain.InsuranceListAgg.InsuranceList.Debt#InsuranceListDebt", b1 =>
+ b.ComplexProperty(typeof(Dictionary), "Debt", "Company.Domain.InsuranceListAgg.InsuranceList.Debt#InsuranceListDebt", b1 =>
{
b1.IsRequired();
@@ -4202,7 +4181,7 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("nvarchar(50)");
});
- b.ComplexProperty>("EmployerApproval", "Company.Domain.InsuranceListAgg.InsuranceList.EmployerApproval#InsuranceListEmployerApproval", b1 =>
+ b.ComplexProperty(typeof(Dictionary), "EmployerApproval", "Company.Domain.InsuranceListAgg.InsuranceList.EmployerApproval#InsuranceListEmployerApproval", b1 =>
{
b1.IsRequired();
@@ -4219,7 +4198,7 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("nvarchar(50)");
});
- b.ComplexProperty>("Inspection", "Company.Domain.InsuranceListAgg.InsuranceList.Inspection#InsuranceListInspection", b1 =>
+ b.ComplexProperty(typeof(Dictionary), "Inspection", "Company.Domain.InsuranceListAgg.InsuranceList.Inspection#InsuranceListInspection", b1 =>
{
b1.IsRequired();
@@ -7332,24 +7311,16 @@ namespace CompanyManagment.EFCore.Migrations
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportLog", b =>
{
- b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", "CameraBugReport")
+ b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", null)
.WithMany("Logs")
- .HasForeignKey("CameraBugReportId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("CameraBugReport");
+ .HasForeignKey("CameraBugReportId");
});
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportScreenshot", b =>
{
- b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", "CameraBugReport")
+ b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", null)
.WithMany("Screenshots")
- .HasForeignKey("CameraBugReportId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("CameraBugReport");
+ .HasForeignKey("CameraBugReportId");
});
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
diff --git a/CompanyManagment.EFCore/Migrations/20251213184424_testmig.cs b/CompanyManagment.EFCore/Migrations/20251213184424_testmig.cs
new file mode 100644
index 00000000..b857af5f
--- /dev/null
+++ b/CompanyManagment.EFCore/Migrations/20251213184424_testmig.cs
@@ -0,0 +1,23 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace CompanyManagment.EFCore.Migrations
+{
+ ///
+ public partial class testmig : Migration
+ {
+ ///
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+
+ }
+
+ ///
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+
+ }
+ }
+}
diff --git a/CompanyManagment.EFCore/Migrations/CompanyContextModelSnapshot.cs b/CompanyManagment.EFCore/Migrations/CompanyContextModelSnapshot.cs
index 02b2c1ea..c50086aa 100644
--- a/CompanyManagment.EFCore/Migrations/CompanyContextModelSnapshot.cs
+++ b/CompanyManagment.EFCore/Migrations/CompanyContextModelSnapshot.cs
@@ -18,7 +18,7 @@ namespace CompanyManagment.EFCore.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "8.0.10")
+ .HasAnnotation("ProductVersion", "10.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
@@ -310,44 +310,36 @@ namespace CompanyManagment.EFCore.Migrations
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReport", b =>
{
- b.Property("id")
+ b.Property("Id")
.ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
+ .HasColumnType("uniqueidentifier");
b.Property("AccountId")
.HasColumnType("bigint");
b.Property("AppVersion")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("BatteryLevel")
.HasColumnType("int");
b.Property("BuildNumber")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Description")
- .IsRequired()
- .HasColumnType("ntext");
+ .HasColumnType("nvarchar(max)");
b.Property("DeviceId")
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)");
+ .HasColumnType("nvarchar(max)");
b.Property("DeviceModel")
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
+ .HasColumnType("nvarchar(max)");
b.Property("Flavor")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("InstallTime")
.HasColumnType("datetime2");
@@ -359,37 +351,31 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("datetime2");
b.Property("Manufacturer")
- .HasMaxLength(100)
- .HasColumnType("nvarchar(100)");
+ .HasColumnType("nvarchar(max)");
b.Property("MemoryInMB")
.HasColumnType("int");
b.Property("NetworkType")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("OsVersion")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("PackageName")
- .HasMaxLength(150)
- .HasColumnType("nvarchar(150)");
+ .HasColumnType("nvarchar(max)");
b.Property("Platform")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("Priority")
.HasColumnType("int");
b.Property("ScreenResolution")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
+ .HasColumnType("nvarchar(max)");
b.Property("StackTrace")
- .HasColumnType("ntext");
+ .HasColumnType("nvarchar(max)");
b.Property("Status")
.HasColumnType("int");
@@ -398,9 +384,7 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("int");
b.Property("Title")
- .IsRequired()
- .HasMaxLength(200)
- .HasColumnType("nvarchar(200)");
+ .HasColumnType("nvarchar(max)");
b.Property("Type")
.HasColumnType("int");
@@ -409,13 +393,11 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("datetime2");
b.Property("UserEmail")
- .IsRequired()
- .HasMaxLength(150)
- .HasColumnType("nvarchar(150)");
+ .HasColumnType("nvarchar(max)");
- b.HasKey("id");
+ b.HasKey("Id");
- b.ToTable("CameraBugReports", (string)null);
+ b.ToTable("CameraBugReports");
});
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportLog", b =>
@@ -426,15 +408,14 @@ namespace CompanyManagment.EFCore.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
- b.Property("CameraBugReportId")
- .HasColumnType("bigint");
+ b.Property("CameraBugReportId")
+ .HasColumnType("uniqueidentifier");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Message")
- .IsRequired()
- .HasColumnType("ntext");
+ .HasColumnType("nvarchar(max)");
b.Property("Timestamp")
.HasColumnType("datetime2");
@@ -443,7 +424,7 @@ namespace CompanyManagment.EFCore.Migrations
b.HasIndex("CameraBugReportId");
- b.ToTable("CameraBugReportLogs", (string)null);
+ b.ToTable("CameraBugReportLogs");
});
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportScreenshot", b =>
@@ -455,18 +436,16 @@ namespace CompanyManagment.EFCore.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("id"));
b.Property("Base64Data")
- .IsRequired()
- .HasColumnType("ntext");
+ .HasColumnType("nvarchar(max)");
- b.Property("CameraBugReportId")
- .HasColumnType("bigint");
+ b.Property("CameraBugReportId")
+ .HasColumnType("uniqueidentifier");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("FileName")
- .HasMaxLength(255)
- .HasColumnType("nvarchar(255)");
+ .HasColumnType("nvarchar(max)");
b.Property("UploadDate")
.HasColumnType("datetime2");
@@ -475,7 +454,7 @@ namespace CompanyManagment.EFCore.Migrations
b.HasIndex("CameraBugReportId");
- b.ToTable("CameraBugReportScreenshots", (string)null);
+ b.ToTable("CameraBugReportScreenshots");
});
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
@@ -4177,7 +4156,7 @@ namespace CompanyManagment.EFCore.Migrations
.HasMaxLength(4)
.HasColumnType("nvarchar(4)");
- b.ComplexProperty>("Debt", "Company.Domain.InsuranceListAgg.InsuranceList.Debt#InsuranceListDebt", b1 =>
+ b.ComplexProperty(typeof(Dictionary), "Debt", "Company.Domain.InsuranceListAgg.InsuranceList.Debt#InsuranceListDebt", b1 =>
{
b1.IsRequired();
@@ -4199,7 +4178,7 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("nvarchar(50)");
});
- b.ComplexProperty>("EmployerApproval", "Company.Domain.InsuranceListAgg.InsuranceList.EmployerApproval#InsuranceListEmployerApproval", b1 =>
+ b.ComplexProperty(typeof(Dictionary), "EmployerApproval", "Company.Domain.InsuranceListAgg.InsuranceList.EmployerApproval#InsuranceListEmployerApproval", b1 =>
{
b1.IsRequired();
@@ -4216,7 +4195,7 @@ namespace CompanyManagment.EFCore.Migrations
.HasColumnType("nvarchar(50)");
});
- b.ComplexProperty>("Inspection", "Company.Domain.InsuranceListAgg.InsuranceList.Inspection#InsuranceListInspection", b1 =>
+ b.ComplexProperty(typeof(Dictionary), "Inspection", "Company.Domain.InsuranceListAgg.InsuranceList.Inspection#InsuranceListInspection", b1 =>
{
b1.IsRequired();
@@ -7329,24 +7308,16 @@ namespace CompanyManagment.EFCore.Migrations
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportLog", b =>
{
- b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", "CameraBugReport")
+ b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", null)
.WithMany("Logs")
- .HasForeignKey("CameraBugReportId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("CameraBugReport");
+ .HasForeignKey("CameraBugReportId");
});
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportScreenshot", b =>
{
- b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", "CameraBugReport")
+ b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", null)
.WithMany("Screenshots")
- .HasForeignKey("CameraBugReportId")
- .OnDelete(DeleteBehavior.Cascade)
- .IsRequired();
-
- b.Navigation("CameraBugReport");
+ .HasForeignKey("CameraBugReportId");
});
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
diff --git a/ServiceHost/appsettings.Development.json b/ServiceHost/appsettings.Development.json
index 9fc1d34d..684aa6aa 100644
--- a/ServiceHost/appsettings.Development.json
+++ b/ServiceHost/appsettings.Development.json
@@ -27,7 +27,8 @@
//program_manager_db
"ProgramManagerDb": "Data Source=.;Initial Catalog=program_manager_db;Integrated Security=True;TrustServerCertificate=true;",
- "ProgramManagerDbServer": "Data Source=171.22.24.15;Initial Catalog=program_manager_db;Persist Security Info=False;User ID=ir_db;Password=R2rNp[170]18[3019]#@ATt;TrustServerCertificate=true;"
+ //"ProgramManagerDb": "Data Source=185.208.175.186;Initial Catalog=program_manager_db;Persist Security Info=False;User ID=ir_db;Password=R2rNp[170]18[3019]#@ATt;TrustServerCertificate=true;"
+ //"ProgramManagerDbServer": "Data Source=171.22.24.15;Initial Catalog=program_manager_db;Persist Security Info=False;User ID=ir_db;Password=R2rNp[170]18[3019]#@ATt;TrustServerCertificate=true;"
//mahan Docker
//"MesbahDb": "Data Source=localhost,5069;Initial Catalog=mesbah_db;User ID=sa;Password=YourPassword123;TrustServerCertificate=True;"
},