Исправлена миграция, с добавлением клиента, чтобы удалялись все заказы
This commit is contained in:
parent
257981c280
commit
8044cadda1
@ -12,8 +12,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace ConfectioneryDatabaseImplement.Migrations
|
||||
{
|
||||
[DbContext(typeof(ConfectioneryDatabase))]
|
||||
[Migration("20230304103151_add_entity_client")]
|
||||
partial class add_entity_client
|
||||
[Migration("20230307072144_add_client")]
|
||||
partial class add_client
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
@ -5,11 +5,12 @@
|
||||
namespace ConfectioneryDatabaseImplement.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class add_entity_client : Migration
|
||||
public partial class add_client : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("DELETE FROM Orders");
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ClientId",
|
||||
table: "Orders",
|
Loading…
Reference in New Issue
Block a user