From 92271622397129aa24f0abad1e956b7a3c8a973e Mon Sep 17 00:00:00 2001 From: "ityurner02@mail.ru" Date: Wed, 17 May 2023 22:22:06 +0400 Subject: [PATCH] =?UTF-8?q?=D1=87=D1=82=D0=BE=D0=B1=20=D0=B2=D1=81=D0=B5?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...on.Designer.cs => 20230517182038_NewMigration.Designer.cs} | 2 +- ...7172340_NewMigration.cs => 20230517182038_NewMigration.cs} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/{20230517172340_NewMigration.Designer.cs => 20230517182038_NewMigration.Designer.cs} (99%) rename SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/{20230517172340_NewMigration.cs => 20230517182038_NewMigration.cs} (99%) diff --git a/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.Designer.cs b/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.Designer.cs similarity index 99% rename from SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.Designer.cs rename to SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.Designer.cs index dc61cfd..176fa85 100644 --- a/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.Designer.cs +++ b/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.Designer.cs @@ -12,7 +12,7 @@ using SchoolAgainStudyDataBaseImplements; namespace SchoolAgainStudyDataBaseImplements.Migrations { [DbContext(typeof(SchoolDataBase))] - [Migration("20230517172340_NewMigration")] + [Migration("20230517182038_NewMigration")] partial class NewMigration { /// diff --git a/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.cs b/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.cs similarity index 99% rename from SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.cs rename to SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.cs index e084841..2f13af5 100644 --- a/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517172340_NewMigration.cs +++ b/SchoolAgainStudy/SchoolAgainStudyDataBaseImplements/Migrations/20230517182038_NewMigration.cs @@ -155,7 +155,7 @@ namespace SchoolAgainStudyDataBaseImplements.Migrations column: x => x.ProductId, principalTable: "Products", principalColumn: "Id", - onDelete: ReferentialAction.Cascade); + onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Lessons_Teachers_TeacherId", column: x => x.TeacherId, @@ -218,7 +218,7 @@ namespace SchoolAgainStudyDataBaseImplements.Migrations column: x => x.TaskId, principalTable: "Tasks", principalColumn: "Id", - onDelete: ReferentialAction.Cascade); + onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable(