From 9c61ffba70b4d7b6c85c3d3d7b357920470df9fc Mon Sep 17 00:00:00 2001 From: KP9lKk Date: Mon, 16 Dec 2024 09:32:08 +0300 Subject: [PATCH] add add --- LootBoxSimulator/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LootBoxSimulator/Program.cs b/LootBoxSimulator/Program.cs index 35c5446..423b5fb 100644 --- a/LootBoxSimulator/Program.cs +++ b/LootBoxSimulator/Program.cs @@ -5,11 +5,13 @@ using LootBoxSimulator.Models.DAO; RemoteDatabaseContext db = new RemoteDatabaseContext(); - +//add value CategoryDao newCategory = new CategoryDao { Name = "epic" }; +db.Categories.Add(newCategory); +db.SaveChanges(); //change value var categoriesUpd = db.Categories.Find(3); if(categoriesUpd == null) return;