Skip to content

Instantly share code, notes, and snippets.

View joeltennant's full-sized avatar

Joel joeltennant

View GitHub Profile
@joeltennant
joeltennant / letterToNumber.js
Created February 14, 2018 05:19
Letter to number (1-26)
const alphaVal = (s) => s.toLowerCase().charCodeAt(0) - 97 + 1
@joeltennant
joeltennant / DapperContext.cs
Last active April 16, 2024 14:09
Wrapper for Dapper
using Dapper;
using Microsoft.Data.SqlClient;
namespace DapperDatabase;
public class DapperContext
{
//Add Connection string however you want
public string? ConnectionString { get; set; }
public DapperContext(string connectionString)