Skip to content

Instantly share code, notes, and snippets.

@SleepyCrat
SleepyCrat / YQLExample.cs
Created February 25, 2013 05:59
This file is an example of how to make a call to the YQL service.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Web;
using Newtonsoft.Json.Linq;
namespace YQLExample
{
class Program
@SleepyCrat
SleepyCrat / JsonAndSQLManipulation.cs
Created September 2, 2015 20:12
A quick and dirty way to take a sql statement and get a datatable, a dictionary of Jobjects, an ennumeration of jojects, or the json string for a set of data without having to be too concerned with a bunch of column management.
//nuget Newtonsoft.Json <--Get this guy from nuget
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;