Skip to content

Instantly share code, notes, and snippets.

View markdstafford's full-sized avatar

Mark Stafford markdstafford

  • Microsoft
  • Redmond, WA
View GitHub Profile
@markdstafford
markdstafford / scratchservice.svc.cs
Created July 12, 2012 21:36
Sample service operation
using System;
using System.Collections.Generic;
using System.Data.Services;
using System.Data.Services.Common;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
namespace Scratch.Web
{
@markdstafford
markdstafford / program.cs
Created July 11, 2012 19:23
Sample JSON Light client
using System;
using System.Collections.Generic;
using System.Data.Services.Client;
using System.Linq;
using System.Text;
using System.Xml;
using Microsoft.Data.Edm;
using Microsoft.Data.Edm.Csdl;
using Microsoft.Data.Edm.Validation;
using Scratch.NW;
@markdstafford
markdstafford / program.cs
Created July 10, 2012 15:12
AddLink/DetachLink
using System;
using System.Linq;
using Scratch.RW;
namespace Scratch
{
internal class Program
{
private static DemoService demoService;
private static Category category;