Astoria query Cheat Sheet

Posted by: Williams .Net Zone, on 04 Nov 2008 | View original | Bookmarked: 0 time(s)

Samples Data Model: Query Samples: Below are some samples of using Astoria to query against the model. I tried to hit the most popular that will hit most of the features, but far from complete. Please let me know others you would like to see and I will keep adding. var db = SocialEntities.GetDB(); // Get the DataContext. // Navigation1.var q = from u in db.Users where u.UserID == 2 from en in u.Entries select en;//http://localhost:7777/RestService.svc/Users(2)/Entries() //Navigation2.var q3 = (from...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1121 | Hits: 45

Similar Posts

  • Serialising Microsoft StreamInsight QueryTemplates more
  • Checking for EF to TSQL Query Compilation Changes in VS2010 Beta1 more
  • Don't be afraid of complex constraints more
  • The Twitter Search API made easy with Linq to XML more
  • Creating LINQToTwitter library using LinqExtender more
  • Emulating Paging with RadGridView for WinForms and LINQ with 1 million records more
  • LinqExtender 1.4 - Enhanced object tracking more
  • Querying with LINQ to Entities vs ObjectQuery in EF more
  • Looking at EF Performance - some surprises more
  • Days and Days with QueryViews more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD