delete на truncate

This commit is contained in:
Данияр Аглиуллов 2023-03-08 14:42:10 +04:00
parent 8044cadda1
commit 97b76f3ba6

View File

@ -10,7 +10,7 @@ namespace ConfectioneryDatabaseImplement.Migrations
/// <inheritdoc /> /// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder) protected override void Up(MigrationBuilder migrationBuilder)
{ {
migrationBuilder.Sql("DELETE FROM Orders"); migrationBuilder.Sql("TRUNCATE Orders");
migrationBuilder.AddColumn<int>( migrationBuilder.AddColumn<int>(
name: "ClientId", name: "ClientId",
table: "Orders", table: "Orders",