Integration Your Way - (800) 235-7250
RSSBus ADO.NET Provider for Google Spreadsheets
Questions / Feedback? LINQ Queries

LINQ Queries

The following example performs a simple query for every MySpreadsheets record whose Column2 equals "Bob":

using System.Linq;

//...

GoogleSheetsEntities context = new GoogleSheetsEntities();
var MySpreadsheetsQuery = from MySpreadsheets in context.MySpreadsheets
                   where MySpreadsheets.Column2 == "Bob"
                   orderby MySpreadsheets.Column1
                   select MySpreadsheets;

foreach(var result in MySpreadsheetsQuery) {
  Console.WriteLine("{0} {1} ", result.Id, result.Column1);
}


 
Copyright © 2013 RSSBus Inc.
[x] close

Questions / Feedback?


Name:
Email:
Feedback:
Send Feedback