public bool AddNewEntry(LineEntry e) { if (e == null) { return(false); } if (sql == null) { return(false); } SqlCeCommand cmd = new SqlCeCommand(); cmd.CommandType = System.Data.CommandType.Text; cmd.CommandText = "INSERT INTO " + UserTable + "(FirstName, LastName, Email) values('" + e.FirstName + "', '" + e.LastName + "', '" + e.Email + "')"; cmd.Connection = this.sql; cmd.ExecuteNonQuery(); iEntries++; Console.WriteLine("adding entry:" + e.FirstName); return(true); }
public bool AddNewEntry(LineEntry e) { return(svc.AddNewEntry(e)); }