Rename tbl Setting -> settings
This commit is contained in:
1303
PARR.DAL/Migrations/20230919043831_TblSettingRename.Designer.cs
generated
Normal file
1303
PARR.DAL/Migrations/20230919043831_TblSettingRename.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
44
PARR.DAL/Migrations/20230919043831_TblSettingRename.cs
Normal file
44
PARR.DAL/Migrations/20230919043831_TblSettingRename.cs
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace PARR.DAL.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class TblSettingRename : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropPrimaryKey(
|
||||||
|
name: "PK_Setting",
|
||||||
|
table: "Setting");
|
||||||
|
|
||||||
|
migrationBuilder.RenameTable(
|
||||||
|
name: "Setting",
|
||||||
|
newName: "Settings");
|
||||||
|
|
||||||
|
migrationBuilder.AddPrimaryKey(
|
||||||
|
name: "PK_Settings",
|
||||||
|
table: "Settings",
|
||||||
|
column: "Name");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropPrimaryKey(
|
||||||
|
name: "PK_Settings",
|
||||||
|
table: "Settings");
|
||||||
|
|
||||||
|
migrationBuilder.RenameTable(
|
||||||
|
name: "Settings",
|
||||||
|
newName: "Setting");
|
||||||
|
|
||||||
|
migrationBuilder.AddPrimaryKey(
|
||||||
|
name: "PK_Setting",
|
||||||
|
table: "Setting",
|
||||||
|
column: "Name");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -448,7 +448,7 @@ namespace PARR.DAL.Migrations
|
|||||||
|
|
||||||
b.HasKey("Name");
|
b.HasKey("Name");
|
||||||
|
|
||||||
b.ToTable("Setting");
|
b.ToTable("Settings");
|
||||||
|
|
||||||
b.HasData(
|
b.HasData(
|
||||||
new
|
new
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
|||||||
|
|
||||||
namespace PARR.DAL.Models
|
namespace PARR.DAL.Models
|
||||||
{
|
{
|
||||||
[Table("Setting")]
|
[Table("Settings")]
|
||||||
public class Setting
|
public class Setting
|
||||||
{
|
{
|
||||||
[Key]
|
[Key]
|
||||||
|
|||||||
Reference in New Issue
Block a user