From bda574f0feb4a037384a43d94d9ffccce9cd7f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9?= Date: Sat, 1 Apr 2023 16:34:06 +0400 Subject: [PATCH] rename --- .../BindingModels/BuildBindingModel.cs | 2 +- .../BindingModels/CommentBindingModel.cs | 2 +- .../BindingModels/PurchaseBindingModel.cs | 2 +- .../ViewModels/BuildViewModel.cs | 2 +- .../ViewModels/CommentViewModel.cs | 2 +- .../ViewModels/PurchaseViewModel.cs | 2 +- .../Models/IBuildModel.cs | 2 +- .../Models/ICommentModel.cs | 2 +- .../Models/IPurchaseModel.cs | 2 +- .../HardwareShopDatabase.cs | 6 +-- .../20230401103551_init.Designer.cs | 34 +++++++------- .../Migrations/20230401103551_init.cs | 46 +++++++++---------- .../HardwareShopDatabaseModelSnapshot.cs | 34 +++++++------- .../Models/ModelsManyToMany/BuildComponent.cs | 2 +- .../Models/ModelsManyToMany/PurchaseBuild.cs | 4 +- .../Models/ModelsManyToMany/PurchaseGood.cs | 4 +- 16 files changed, 74 insertions(+), 74 deletions(-) diff --git a/HardwareShop/HardwareShopContracts/BindingModels/BuildBindingModel.cs b/HardwareShop/HardwareShopContracts/BindingModels/BuildBindingModel.cs index 4ce382d..5726e43 100644 --- a/HardwareShop/HardwareShopContracts/BindingModels/BuildBindingModel.cs +++ b/HardwareShop/HardwareShopContracts/BindingModels/BuildBindingModel.cs @@ -11,7 +11,7 @@ namespace HardwareShopContracts.BindingModels public string BuildName { get; set; } = string.Empty; - public int UserID { get; set; } + public int UserId { get; set; } public Dictionary? BuildComponents { get; set; } } diff --git a/HardwareShop/HardwareShopContracts/BindingModels/CommentBindingModel.cs b/HardwareShop/HardwareShopContracts/BindingModels/CommentBindingModel.cs index 7f6175d..09991f9 100644 --- a/HardwareShop/HardwareShopContracts/BindingModels/CommentBindingModel.cs +++ b/HardwareShop/HardwareShopContracts/BindingModels/CommentBindingModel.cs @@ -10,6 +10,6 @@ namespace HardwareShopContracts.BindingModels public string Text { get; set; } = string.Empty; - public int BuildID { get; set; } + public int BuildId { get; set; } } } diff --git a/HardwareShop/HardwareShopContracts/BindingModels/PurchaseBindingModel.cs b/HardwareShop/HardwareShopContracts/BindingModels/PurchaseBindingModel.cs index c5ce128..378629c 100644 --- a/HardwareShop/HardwareShopContracts/BindingModels/PurchaseBindingModel.cs +++ b/HardwareShop/HardwareShopContracts/BindingModels/PurchaseBindingModel.cs @@ -14,7 +14,7 @@ namespace HardwareShopContracts.BindingModels public DateTime? DatePurchase { get; set; } - public int UserID { get; set; } + public int UserId { get; set; } public Dictionary? PurchaseBuilds { get; set; } diff --git a/HardwareShop/HardwareShopContracts/ViewModels/BuildViewModel.cs b/HardwareShop/HardwareShopContracts/ViewModels/BuildViewModel.cs index 186a85b..8dcd7c2 100644 --- a/HardwareShop/HardwareShopContracts/ViewModels/BuildViewModel.cs +++ b/HardwareShop/HardwareShopContracts/ViewModels/BuildViewModel.cs @@ -15,7 +15,7 @@ namespace HardwareShopContracts.ViewModels [DisplayName("Клиент")] public string UserEmail { get; set; } = string.Empty; - public int UserID { get; set; } + public int UserId { get; set; } public Dictionary? BuildComponents { get; set; } } diff --git a/HardwareShop/HardwareShopContracts/ViewModels/CommentViewModel.cs b/HardwareShop/HardwareShopContracts/ViewModels/CommentViewModel.cs index 04fce82..e6f9be8 100644 --- a/HardwareShop/HardwareShopContracts/ViewModels/CommentViewModel.cs +++ b/HardwareShop/HardwareShopContracts/ViewModels/CommentViewModel.cs @@ -13,6 +13,6 @@ namespace HardwareShopContracts.ViewModels [DisplayName("Название сборки")] public string BuildName { get; set; } = string.Empty; - public int BuildID { get; set; } + public int BuildId { get; set; } } } diff --git a/HardwareShop/HardwareShopContracts/ViewModels/PurchaseViewModel.cs b/HardwareShop/HardwareShopContracts/ViewModels/PurchaseViewModel.cs index 485ad15..7e31133 100644 --- a/HardwareShop/HardwareShopContracts/ViewModels/PurchaseViewModel.cs +++ b/HardwareShop/HardwareShopContracts/ViewModels/PurchaseViewModel.cs @@ -16,7 +16,7 @@ namespace HardwareShopContracts.ViewModels [DisplayName("Дата оплаты")] public DateTime? DatePurchase { get; set; } - public int UserID { get; set; } + public int UserId { get; set; } [DisplayName("Email клиента")] public string UserEmail { get; set; } = string.Empty; diff --git a/HardwareShop/HardwareShopDataModels/Models/IBuildModel.cs b/HardwareShop/HardwareShopDataModels/Models/IBuildModel.cs index 9bccda5..0540675 100644 --- a/HardwareShop/HardwareShopDataModels/Models/IBuildModel.cs +++ b/HardwareShop/HardwareShopDataModels/Models/IBuildModel.cs @@ -13,7 +13,7 @@ namespace HardwareShopDataModels.Models string BuildName { get; } - int UserID { get; } + int UserId { get; } Dictionary? BuildComponents { get; } } diff --git a/HardwareShop/HardwareShopDataModels/Models/ICommentModel.cs b/HardwareShop/HardwareShopDataModels/Models/ICommentModel.cs index 9f57aab..dc59c3f 100644 --- a/HardwareShop/HardwareShopDataModels/Models/ICommentModel.cs +++ b/HardwareShop/HardwareShopDataModels/Models/ICommentModel.cs @@ -10,6 +10,6 @@ namespace HardwareShopDataModels.Models { string Text { get; } - int BuildID { get; } + int BuildId { get; } } } diff --git a/HardwareShop/HardwareShopDataModels/Models/IPurchaseModel.cs b/HardwareShop/HardwareShopDataModels/Models/IPurchaseModel.cs index 3301105..69d4ef4 100644 --- a/HardwareShop/HardwareShopDataModels/Models/IPurchaseModel.cs +++ b/HardwareShop/HardwareShopDataModels/Models/IPurchaseModel.cs @@ -11,7 +11,7 @@ namespace HardwareShopDataModels.Models //через "?" обозначается что поле может быть null DateTime? DatePurchase { get; } - int UserID { get; } + int UserId { get; } Dictionary? PurchaseBuilds { get; } diff --git a/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs b/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs index 648429e..388217d 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/HardwareShopDatabase.cs @@ -18,9 +18,9 @@ namespace HardwareShopDatabaseImplement protected override void OnModelCreating(ModelBuilder modelBuilder) { - modelBuilder.Entity().HasKey(x => new { x.ComponentId, x.BuildID }); - modelBuilder.Entity().HasKey(x => new { x.PurchaseID, x.BuildID }); - modelBuilder.Entity().HasKey(x => new { x.PurchaseID, x.GoodID }); + modelBuilder.Entity().HasKey(x => new { x.ComponentId, x.BuildId }); + modelBuilder.Entity().HasKey(x => new { x.PurchaseId, x.BuildId }); + modelBuilder.Entity().HasKey(x => new { x.PurchaseId, x.GoodId }); } public virtual DbSet Builds { set; get; } diff --git a/HardwareShop/HardwareShopDatabaseImplement/Migrations/20230401103551_init.Designer.cs b/HardwareShop/HardwareShopDatabaseImplement/Migrations/20230401103551_init.Designer.cs index 0677209..d00517d 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/Migrations/20230401103551_init.Designer.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/Migrations/20230401103551_init.Designer.cs @@ -40,7 +40,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("Price") .HasColumnType("decimal(18,2)"); - b.Property("UserID") + b.Property("UserId") .HasColumnType("int"); b.HasKey("Id"); @@ -53,7 +53,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("ComponentId") .HasColumnType("int"); - b.Property("BuildID") + b.Property("BuildId") .HasColumnType("int"); b.Property("BuildId") @@ -62,7 +62,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("Count") .HasColumnType("int"); - b.HasKey("ComponentId", "BuildID"); + b.HasKey("ComponentId", "BuildId"); b.HasIndex("BuildId"); @@ -77,7 +77,7 @@ namespace HardwareShopDatabaseImplement.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - b.Property("BuildID") + b.Property("BuildId") .HasColumnType("int"); b.Property("BuildName") @@ -90,7 +90,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.HasKey("Id"); - b.HasIndex("BuildID"); + b.HasIndex("BuildId"); b.ToTable("Comments"); }); @@ -151,22 +151,22 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("Sum") .HasColumnType("decimal(18,2)"); - b.Property("UserID") + b.Property("UserId") .HasColumnType("int"); b.HasKey("Id"); - b.HasIndex("UserID"); + b.HasIndex("UserId"); b.ToTable("Purchase"); }); modelBuilder.Entity("HardwareShopDatabaseImplement.Models.PurchaseBuild", b => { - b.Property("PurchaseID") + b.Property("PurchaseId") .HasColumnType("int"); - b.Property("BuildID") + b.Property("BuildId") .HasColumnType("int"); b.Property("BuildId") @@ -178,7 +178,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("PurchaseId") .HasColumnType("int"); - b.HasKey("PurchaseID", "BuildID"); + b.HasKey("PurchaseId", "BuildId"); b.HasIndex("BuildId"); @@ -189,10 +189,10 @@ namespace HardwareShopDatabaseImplement.Migrations modelBuilder.Entity("HardwareShopDatabaseImplement.Models.PurchaseGood", b => { - b.Property("PurchaseID") + b.Property("PurchaseId") .HasColumnType("int"); - b.Property("GoodID") + b.Property("GoodId") .HasColumnType("int"); b.Property("Count") @@ -201,9 +201,9 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("PurchaseId") .HasColumnType("int"); - b.HasKey("PurchaseID", "GoodID"); + b.HasKey("PurchaseId", "GoodId"); - b.HasIndex("GoodID"); + b.HasIndex("GoodId"); b.HasIndex("PurchaseId"); @@ -261,7 +261,7 @@ namespace HardwareShopDatabaseImplement.Migrations { b.HasOne("HardwareShopDatabaseImplement.Models.Build", "Build") .WithMany() - .HasForeignKey("BuildID") + .HasForeignKey("BuildId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -272,7 +272,7 @@ namespace HardwareShopDatabaseImplement.Migrations { b.HasOne("HardwareShopDatabaseImplement.Models.User", "User") .WithMany() - .HasForeignKey("UserID") + .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -302,7 +302,7 @@ namespace HardwareShopDatabaseImplement.Migrations { b.HasOne("HardwareShopDatabaseImplement.Models.Good", "Good") .WithMany() - .HasForeignKey("GoodID") + .HasForeignKey("GoodId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); diff --git a/HardwareShop/HardwareShopDatabaseImplement/Migrations/20230401103551_init.cs b/HardwareShop/HardwareShopDatabaseImplement/Migrations/20230401103551_init.cs index 3802537..53c95ac 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/Migrations/20230401103551_init.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/Migrations/20230401103551_init.cs @@ -19,7 +19,7 @@ namespace HardwareShopDatabaseImplement.Migrations .Annotation("SqlServer:Identity", "1, 1"), Price = table.Column(type: "decimal(18,2)", nullable: false), BuildName = table.Column(type: "nvarchar(max)", nullable: false), - UserID = table.Column(type: "int", nullable: false) + UserId = table.Column(type: "int", nullable: false) }, constraints: table => { @@ -86,14 +86,14 @@ namespace HardwareShopDatabaseImplement.Migrations .Annotation("SqlServer:Identity", "1, 1"), Text = table.Column(type: "nvarchar(max)", nullable: false), BuildName = table.Column(type: "nvarchar(max)", nullable: false), - BuildID = table.Column(type: "int", nullable: false) + BuildId = table.Column(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Comments", x => x.Id); table.ForeignKey( - name: "FK_Comments_Builds_BuildID", - column: x => x.BuildID, + name: "FK_Comments_Builds_BuildId", + column: x => x.BuildId, principalTable: "Builds", principalColumn: "Id", onDelete: ReferentialAction.Cascade); @@ -103,14 +103,14 @@ namespace HardwareShopDatabaseImplement.Migrations name: "BuildComponent", columns: table => new { - BuildID = table.Column(type: "int", nullable: false), + BuildId = table.Column(type: "int", nullable: false), ComponentId = table.Column(type: "int", nullable: false), Count = table.Column(type: "int", nullable: false), BuildId = table.Column(type: "int", nullable: false) }, constraints: table => { - table.PrimaryKey("PK_BuildComponent", x => new { x.ComponentId, x.BuildID }); + table.PrimaryKey("PK_BuildComponent", x => new { x.ComponentId, x.BuildId }); table.ForeignKey( name: "FK_BuildComponent_Builds_BuildId", column: x => x.BuildId, @@ -134,14 +134,14 @@ namespace HardwareShopDatabaseImplement.Migrations Sum = table.Column(type: "decimal(18,2)", nullable: false), PurchaseStatus = table.Column(type: "int", nullable: false), DatePurchase = table.Column(type: "datetime2", nullable: true), - UserID = table.Column(type: "int", nullable: false) + UserId = table.Column(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Purchase", x => x.Id); table.ForeignKey( - name: "FK_Purchase_Users_UserID", - column: x => x.UserID, + name: "FK_Purchase_Users_UserId", + column: x => x.UserId, principalTable: "Users", principalColumn: "Id", onDelete: ReferentialAction.Cascade); @@ -151,15 +151,15 @@ namespace HardwareShopDatabaseImplement.Migrations name: "PurchasesBuilds", columns: table => new { - BuildID = table.Column(type: "int", nullable: false), - PurchaseID = table.Column(type: "int", nullable: false), + BuildId = table.Column(type: "int", nullable: false), + PurchaseId = table.Column(type: "int", nullable: false), Count = table.Column(type: "int", nullable: false), BuildId = table.Column(type: "int", nullable: false), PurchaseId = table.Column(type: "int", nullable: false) }, constraints: table => { - table.PrimaryKey("PK_PurchasesBuilds", x => new { x.PurchaseID, x.BuildID }); + table.PrimaryKey("PK_PurchasesBuilds", x => new { x.PurchaseId, x.BuildId }); table.ForeignKey( name: "FK_PurchasesBuilds_Builds_BuildId", column: x => x.BuildId, @@ -178,17 +178,17 @@ namespace HardwareShopDatabaseImplement.Migrations name: "PurchasesGoods", columns: table => new { - PurchaseID = table.Column(type: "int", nullable: false), - GoodID = table.Column(type: "int", nullable: false), + PurchaseId = table.Column(type: "int", nullable: false), + GoodId = table.Column(type: "int", nullable: false), Count = table.Column(type: "int", nullable: false), PurchaseId = table.Column(type: "int", nullable: false) }, constraints: table => { - table.PrimaryKey("PK_PurchasesGoods", x => new { x.PurchaseID, x.GoodID }); + table.PrimaryKey("PK_PurchasesGoods", x => new { x.PurchaseId, x.GoodId }); table.ForeignKey( - name: "FK_PurchasesGoods_Goods_GoodID", - column: x => x.GoodID, + name: "FK_PurchasesGoods_Goods_GoodId", + column: x => x.GoodId, principalTable: "Goods", principalColumn: "Id", onDelete: ReferentialAction.Cascade); @@ -206,14 +206,14 @@ namespace HardwareShopDatabaseImplement.Migrations column: "BuildId"); migrationBuilder.CreateIndex( - name: "IX_Comments_BuildID", + name: "IX_Comments_BuildId", table: "Comments", - column: "BuildID"); + column: "BuildId"); migrationBuilder.CreateIndex( - name: "IX_Purchase_UserID", + name: "IX_Purchase_UserId", table: "Purchase", - column: "UserID"); + column: "UserId"); migrationBuilder.CreateIndex( name: "IX_PurchasesBuilds_BuildId", @@ -226,9 +226,9 @@ namespace HardwareShopDatabaseImplement.Migrations column: "PurchaseId"); migrationBuilder.CreateIndex( - name: "IX_PurchasesGoods_GoodID", + name: "IX_PurchasesGoods_GoodId", table: "PurchasesGoods", - column: "GoodID"); + column: "GoodId"); migrationBuilder.CreateIndex( name: "IX_PurchasesGoods_PurchaseId", diff --git a/HardwareShop/HardwareShopDatabaseImplement/Migrations/HardwareShopDatabaseModelSnapshot.cs b/HardwareShop/HardwareShopDatabaseImplement/Migrations/HardwareShopDatabaseModelSnapshot.cs index fe453d0..af9407c 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/Migrations/HardwareShopDatabaseModelSnapshot.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/Migrations/HardwareShopDatabaseModelSnapshot.cs @@ -37,7 +37,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("Price") .HasColumnType("decimal(18,2)"); - b.Property("UserID") + b.Property("UserId") .HasColumnType("int"); b.HasKey("Id"); @@ -50,7 +50,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("ComponentId") .HasColumnType("int"); - b.Property("BuildID") + b.Property("BuildId") .HasColumnType("int"); b.Property("BuildId") @@ -59,7 +59,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("Count") .HasColumnType("int"); - b.HasKey("ComponentId", "BuildID"); + b.HasKey("ComponentId", "BuildId"); b.HasIndex("BuildId"); @@ -74,7 +74,7 @@ namespace HardwareShopDatabaseImplement.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - b.Property("BuildID") + b.Property("BuildId") .HasColumnType("int"); b.Property("BuildName") @@ -87,7 +87,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.HasKey("Id"); - b.HasIndex("BuildID"); + b.HasIndex("BuildId"); b.ToTable("Comments"); }); @@ -148,22 +148,22 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("Sum") .HasColumnType("decimal(18,2)"); - b.Property("UserID") + b.Property("UserId") .HasColumnType("int"); b.HasKey("Id"); - b.HasIndex("UserID"); + b.HasIndex("UserId"); b.ToTable("Purchase"); }); modelBuilder.Entity("HardwareShopDatabaseImplement.Models.PurchaseBuild", b => { - b.Property("PurchaseID") + b.Property("PurchaseId") .HasColumnType("int"); - b.Property("BuildID") + b.Property("BuildId") .HasColumnType("int"); b.Property("BuildId") @@ -175,7 +175,7 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("PurchaseId") .HasColumnType("int"); - b.HasKey("PurchaseID", "BuildID"); + b.HasKey("PurchaseId", "BuildId"); b.HasIndex("BuildId"); @@ -186,10 +186,10 @@ namespace HardwareShopDatabaseImplement.Migrations modelBuilder.Entity("HardwareShopDatabaseImplement.Models.PurchaseGood", b => { - b.Property("PurchaseID") + b.Property("PurchaseId") .HasColumnType("int"); - b.Property("GoodID") + b.Property("GoodId") .HasColumnType("int"); b.Property("Count") @@ -198,9 +198,9 @@ namespace HardwareShopDatabaseImplement.Migrations b.Property("PurchaseId") .HasColumnType("int"); - b.HasKey("PurchaseID", "GoodID"); + b.HasKey("PurchaseId", "GoodId"); - b.HasIndex("GoodID"); + b.HasIndex("GoodId"); b.HasIndex("PurchaseId"); @@ -258,7 +258,7 @@ namespace HardwareShopDatabaseImplement.Migrations { b.HasOne("HardwareShopDatabaseImplement.Models.Build", "Build") .WithMany() - .HasForeignKey("BuildID") + .HasForeignKey("BuildId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -269,7 +269,7 @@ namespace HardwareShopDatabaseImplement.Migrations { b.HasOne("HardwareShopDatabaseImplement.Models.User", "User") .WithMany() - .HasForeignKey("UserID") + .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -299,7 +299,7 @@ namespace HardwareShopDatabaseImplement.Migrations { b.HasOne("HardwareShopDatabaseImplement.Models.Good", "Good") .WithMany() - .HasForeignKey("GoodID") + .HasForeignKey("GoodId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); diff --git a/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/BuildComponent.cs b/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/BuildComponent.cs index 5543221..3c28cd6 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/BuildComponent.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/BuildComponent.cs @@ -12,7 +12,7 @@ namespace HardwareShopDatabaseImplement.Models.ModelsManyToMany public class BuildComponent { - public int BuildID { get; set; } + public int BuildId { get; set; } public int ComponentId { get; set; } diff --git a/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/PurchaseBuild.cs b/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/PurchaseBuild.cs index 11d128f..6fd3692 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/PurchaseBuild.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/PurchaseBuild.cs @@ -11,9 +11,9 @@ namespace HardwareShopDatabaseImplement.Models.ModelsManyToMany public class PurchaseBuild { - public int BuildID { get; set; } + public int BuildId { get; set; } - public int PurchaseID { get; set; } + public int PurchaseId { get; set; } [Required] public int Count { get; set; } diff --git a/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/PurchaseGood.cs b/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/PurchaseGood.cs index 6a12faf..6cb8aaf 100644 --- a/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/PurchaseGood.cs +++ b/HardwareShop/HardwareShopDatabaseImplement/Models/ModelsManyToMany/PurchaseGood.cs @@ -12,9 +12,9 @@ namespace HardwareShopDatabaseImplement.Models.ModelsManyToMany public class PurchaseGood { - public int PurchaseID { get; set; } + public int PurchaseId { get; set; } - public int GoodID { get; set; } + public int GoodId { get; set; } [Required] public int Count { get; set; }