Updateed some formatting and bug fixes
Fixed inconsistencies in queries that would result in errors because the parameters were missing. Updating a guest is an example that had this issue. After checking parameters should all be supplied where needed.
This commit is contained in:
@@ -80,6 +80,7 @@ namespace Ophelias.Models
|
||||
{
|
||||
using SQLiteCommand cmd = Manager.con.CreateCommand(); // Creates a new command that will be executed in the database
|
||||
cmd.CommandText = QueryBuilder.UpdateGuest(Id, FirstName, LastName, Email, CreditCard, Expiration, CCV);
|
||||
cmd.Parameters.AddWithValue("@Id", Id);
|
||||
cmd.Parameters.AddWithValue("@Fname", FirstName);
|
||||
cmd.Parameters.AddWithValue("@Lname", LastName);
|
||||
cmd.Parameters.AddWithValue("@Email", Email);
|
||||
|
||||
Reference in New Issue
Block a user