Category Archives: ado.net

ado.net temel işlemleri için helper

using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Data; using System.Text.RegularExpressions; namespace DBHelper { public static class Db { static string connectionString; [ThreadStatic] static SqlConnection connection; [ThreadStatic] static SqlTransaction transaction; static Db() { connectionString = ConfigurationManager.ConnectionStrings[“DefaultConnection”].ConnectionString; } public static bool OpenConnection() { if… Read more »