C# (Insert, update, Delete) with 1 simple function. SQL server C# Windows application. OOP.

Опубликовано: 22 Март 2026
на канале: Safi Tech
321
5

if you need source code, it's available in the description.

/////////////////////////

using MetroFramework.Controls;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BCSBatch9E.Database
{
class DBGeneral:DBConnection
{

//Insert Update Delete...
public void General_Query(string query)
{
OpenConnection();
CMD.CommandText = query;
CMD.ExecuteNonQuery();
CloseConnection();
}

}
}
////////////////////////