A lightweight and practical C# helper class for performing common MSSQL operations using ADO.NET.
Provides simplified methods for SELECT, INSERT, UPDATE, DELETE, Stored Procedure, and BulkInsert.
- πΉ Get data from table, raw SQL, or stored procedure
- πΉ Insert and update data dynamically with property mapping
- πΉ Delete records with condition enforcement
- πΉ Execute stored procedures with input/output parameters
- πΉ Perform high-performance BulkInsertwith DataTable conversion
public class Person
{
    public int Id { get; set; } // Identity
    public string Name { get; set; }
    public int Age { get; set; }
}var people = DbHelper.GetList<Person>("Person"); // SELECT * FROM Personvar person = new Person { Name = "Burak", Age = 30 };
int newId = DbHelper.Insert("Person", person);var result = DbHelper.GetListProcedure<Person>("GetPeopleByAge", new { Age = 25 });Update the connection string returned by AppSettings.GetConnection() method, for example:
public static class AppSettings
{
    public static string GetConnection()
    {
        return "Server=localhost;Database=YourDbName;Trusted_Connection=True;";
    }
}This project is licensed under the MIT License - see the LICENSE file for details.