<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Marc Dormey &#187; linq</title>
	<atom:link href="http://www.marcdormey.com/index.php/tags/linq/feed" rel="self" type="application/rss+xml" />
	<link>http://www.marcdormey.com</link>
	<description>Software Finds, Programming Tutorials and Gadget Reviews</description>
	<lastBuildDate>Tue, 20 Jul 2010 14:52:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jLinq &#8211; LINQ for JSON</title>
		<link>http://www.marcdormey.com/index.php/archives/jlinq-linq-for-json</link>
		<comments>http://www.marcdormey.com/index.php/archives/jlinq-linq-for-json#comments</comments>
		<pubDate>Mon, 19 Oct 2009 10:44:55 +0000</pubDate>
		<dc:creator>Marcel</dc:creator>
				<category><![CDATA[CSS/Html]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[jlinq]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[linq]]></category>
		<category><![CDATA[linq2sql]]></category>

		<guid isPermaLink="false">http://www.marcdormey.com/?p=229</guid>
		<description><![CDATA[

Sometimes I stumble accross something and immediately think &#8220;where has this been all my life?&#8221;. Finding jLinq is one of those moments.
I love Language Integrated Query (LINQ) and have used it for the last couple of years. With LINQ2NHibernate, LINQ2Lucene, LINQ2Amazon and even LINQ2Twitter emerging, it is very clear that LINQ is here to stay.
Enter [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.marcdormey.com/wp-content/uploads/2009/10/jLinq.png" alt="jLinq" title="jLinq" style="float:right; margin-left:5px; margin-bottom: 5px;" /></p>
<div style="margin-top: -5px;">
Sometimes I stumble accross something and immediately think &#8220;where has this been all my life?&#8221;. Finding jLinq is one of those moments.<br />
I love Language Integrated Query (LINQ) and have used it for the last couple of years. With <a href="http://www.hookedonlinq.com/LINQToNHibernate.ashx">LINQ2NHibernate</a>, <a href="http://www.codeplex.com/linqtolucene">LINQ2Lucene</a>, <a href="http://weblogs.asp.net/fmarguerie/archive/2006/06/26/Introducing-Linq-to-Amazon.aspx">LINQ2Amazon</a> and even <a href="http://linqtotwitter.codeplex.com/">LINQ2Twitter</a> emerging, it is very clear that LINQ is here to stay.</p>
<p>Enter <a href="http://www.hugoware.net/Projects/jLinq">jLinq from Hugoware</a>&#8230;
</div>
<pre class="brush:csharp">
$.getJSON("/Person/All", function(data) {
  var results = jLinq.from(data.users)
      .startsWith("first", "a")
      .orEndsWith("y")
      .orderBy("admin", "age")
      .select();
});
</pre>
<p>You can view the basics of jLinq from this <a href="http://www.hugoware.net/Projects/jLinq/Screencast1">screencast</a>.<br />
We used jLinq to solve a very complex join operation on our JSON object and found it to be a very simple task&#8230;</p>
<pre class="brush:csharp">
  var results = jLinq.from(data.users)
    .join(data.locations, "location", "locationId", "id")
    .equals("location.state", "texas")
    .orderBy("location.city")
    .select(function(r) {
    return {
       fullname:r.first + " " + r.last,
       city:r.location.city,
       state:r.location.state
    };
});
</pre>
<p>jLinq is also very extensible and creating your own extension methods couldnt be easier&#8230;</p>
<pre class="brush:csharp">
  jLinq.extend({
    name:"startsWithLetterP",
    type:"query",
    count:0,
    method:function(q) {
        return q.helper.match(q.value, /^p/);
    }}); 

//use the new method
var results = jLinq.from(data.users)
    .startsWithLetterP("first")
    .select();
</pre>
<p>So why wait another minute, head off to experiment <a href="http://www.hugoware.net/Projects/jLinq">here </a> right now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcdormey.com/index.php/archives/jlinq-linq-for-json/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
