public void Add(Warehouse warehouse) { using var connection = new SqlConnection(connectionString); connection.ExecuteNonQuery("EXEC dbo.AddWarehouse @Name, @Address", new { warehouse.Name, warehouse.Address }); }
public void Update(Warehouse warehouse) { using var connection = new SqlConnection(connectionString); connection.Update(warehouse, trace: trace); }