Esempio n. 1
0
        public static void InsertImage(EImage image)
        {
            MySqlCommand cmd = new MySqlCommand("insert_image", Connection.Con);

            cmd.CommandType = CommandType.StoredProcedure;

            cmd.Parameters.Add(new MySqlParameter("Pimage", image.image));
            cmd.Parameters.Add(new MySqlParameter("Pname", image.name));
            cmd.Parameters.Add(new MySqlParameter("Puser_id", image.user_id));
            cmd.Connection.Open();
            var result = cmd.ExecuteNonQuery();

            cmd.Connection.Close();
        }
Esempio n. 2
0
 public static string InsertImage(EImage image)
 {
     FUser.InsertImage(image);
     return("");
 }