DeletePicture
public override void DeletePicture(int sectionID, int threadID)

{
using( SqlConnection myConnection = GetSqlConnection() ) 
{
SqlCommand myCommand = new SqlCommand(databaseOwner + ".cs_Thread_Delete", myConnection);
// Mark the Command as a SPROC
myCommand.CommandType = CommandType.StoredProcedure;
// Add Parameters to SPROC
myCommand.Parameters.Add("@SectionID", SqlDbType.Int, 4).Value = sectionID;
//15
//氯胺酮的相册
myCommand.Parameters.Add("@ThreadID", SqlDbType.Int, 4).Value = threadID;
//27
//关于E欣欣4的主题
myCommand.Parameters.Add(this.SettingsIDParameter());
// Execute the command
myConnection.Open();
myCommand.ExecuteNonQuery();
myConnection.Close();
}
}
浙公网安备 33010602011771号