Пример #1
0
 public void UpdateCategory(int id, Categories c)
 {
     _query = $"UPDATE Category SET id = {c.Id},name = {c.Name}";
     int row = NonReader(_query, "Update Category");
 }
Пример #2
0
 public void AddCategory(Categories c)
 {
     _query = $"INSERT INTO Categories" +
              $"VALUES ({ c.Id},{ c.Name})";
     int row = NonReader(_query, "Add Category");
 }