public static int Execute(this IMsSqlDatabase database, string sql, object param) { return(database.WithConnection(c => c.Execute(sql, param))); }
public static IReadOnlyCollection <T> Query <T>(this IMsSqlDatabase database, string sql) { return(database.WithConnection <IReadOnlyCollection <T> >(c => c.Query <T>(sql).ToList())); }