Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public bool AddNewEntry(LineEntry e)
 {
     return(svc.AddNewEntry(e));
 }