• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Custom LINQ Providers
 

Custom LINQ Providers

on

  • 1,017 views

The presentation how to create custom linq providers for .net

The presentation how to create custom linq providers for .net

Statistics

Views

Total Views
1,017
Views on SlideShare
1,006
Embed Views
11

Actions

Likes
0
Downloads
0
Comments
0

4 Embeds 11

http://coderwall.com 6
http://a0.twimg.com 3
http://us-w1.rockmelt.com 1
http://www.linkedin.com 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Custom LINQ Providers Custom LINQ Providers Presentation Transcript

    • IQUERYPROVIDER
    • source .Provider .Execute<int>( Expression.Call(null, ((MethodInfo) MethodBase .GetCurrentMethod()) .MakeGenericMethod( new Type[] { typeof(TSource) }), new Expression[] {source.Expression }));
    • Source .Provider .CreateQuery<TSource>( Expression.Call( null, ((MethodInfo) MethodBase .GetCurrentMethod()) .MakeGenericMethod( new Type[] { typeof(TSource) }), new Expression[] { source.Expression, Expression.Quote(predicate) }));
    • IQUERYPROVIDER
    • IQUERYPROVIDER
    • IQUERYPROVIDER
    • //is it the same thing?s1 == s2s1.Equals(s2)String.Equals(s1, s2)String.Compare(s1, s2) == 0
    • ••••