Ejemplo n.º 1
0
        public void Delete(Core.Business.Sendsms sendsms)
        {
            MySqlUtility sql = new MySqlUtility();

            sql.AddParameter("@Id", MySqlDbType.Int64, sendsms.Id);
            sql.ExecuteSql(SqlDeleteSendsms);
        }
Ejemplo n.º 2
0
        public void Insert(Core.Business.Sendsms sendsms)
        {
            MySqlUtility sql = new MySqlUtility();
            string strSQL = "INSERT INTO Sendsms(Content,Phone) values('" + sendsms.Content + "', '"+sendsms.Phone+"');";

            sql.ExecuteSql(strSQL);
        }
Ejemplo n.º 3
0
        public void Update(Core.Business.Sendsms sendsms)
        {
            MySqlUtility sql = new MySqlUtility();

            sql.AddParameter("@StatusTime", MySqlDbType.DateTime, sendsms.StatusTime);
            sql.AddParameter("@Content", MySqlDbType.VarChar, sendsms.Content);
            sql.AddParameter("@Phone", MySqlDbType.VarChar, sendsms.Phone);
            sql.AddParameter("@ReturnFlag", MySqlDbType.VarChar, sendsms.ReturnFlag);
            sql.AddParameter("@Id", MySqlDbType.Int64, sendsms.Id);
            sql.ExecuteSql(SqlUpdateSendsms);
        }