Querying relationships with LinqtoCRM

Posted on |

I’ve just recorded a web cast demontrating joins with LinqtoCRM. The piece de resistance is a join across a many-to-many relationship with the intermediary class generated by CRMMetal:

var res = from u in p.Linq()
	join sr in p.Linq() on u.systemuserid.Value equals sr.systemuserid.Value
	join r in p.Linq() on sr.roleid.Value equals r.roleid.Value
        select new { u.fullname, r.name };

The equivalent example query in the CRM SDK is around forty lines, compared to four for LinqtoCRM. Watch the web cast here.

8 thoughts on “Querying relationships with LinqtoCRM”


Warning: Undefined variable $aria_req in /var/www/html/wp-content/themes/friism/comments.php on line 95

Warning: Undefined variable $aria_req in /var/www/html/wp-content/themes/friism/comments.php on line 96

Warning: Undefined variable $aria_req in /var/www/html/wp-content/themes/friism/comments.php on line 97

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>