This commit is contained in:
KP9lKk 2024-12-16 09:32:08 +03:00
parent 81042a87fc
commit 9c61ffba70

View File

@ -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;