From ec0b1a00ae5e09e3f2bdd2ee1630e7357874f4d6 Mon Sep 17 00:00:00 2001 From: kougyoku Date: Thu, 10 Oct 2019 10:36:32 -0700 Subject: [PATCH] Fix VS Griping. Fix loadCustomerView --- QueueSys/SqliteDataAccess.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/QueueSys/SqliteDataAccess.cs b/QueueSys/SqliteDataAccess.cs index 352eb30..73a0b97 100644 --- a/QueueSys/SqliteDataAccess.cs +++ b/QueueSys/SqliteDataAccess.cs @@ -10,14 +10,14 @@ using System.Threading.Tasks; namespace QueueSys { - public class customerView + public class CustomerView { public string customerName { get; } public string status { get; } public string timeElapsed { get; } } - public class employeeView + public class EmployeeView { public int id { get; } public string customer_name { get; set; } @@ -28,7 +28,7 @@ namespace QueueSys public class SqliteDataAccess { - public static List loadEmployeeView() + public static List LoadEmployeeView() { string strQuery = "SELECT id,customer_name,num_bags,employee,status FROM active_customers;"; @@ -36,23 +36,23 @@ namespace QueueSys //database will be closed, even in event of an application or computer crash. using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString())) { - var output = cnn.Query(strQuery, new DynamicParameters()); + var output = cnn.Query(strQuery, new DynamicParameters()); return output.ToList(); } } - public static List loadCustomerView() + public static List LoadCustomerView() { - string strQuery = "SELECT customer_name,status FROM active_customers;"; - using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString())) { - var output = cnn.Query(strQuery, new DynamicParameters()); + string strQuery = "SELECT customer_name,status FROM active_customers;"; + + var output = cnn.Query(strQuery, new DynamicParameters()); return output.ToList(); } } - public static void saveCustomer(employeeView customer) + public static void SaveCustomer(EmployeeView customer) { }