Linq providers
19
-
Upload
kiev-altnet -
Category
Technology
-
view
1.168 -
download
3
Transcript of Linq providers
IQUERY
PROVIDER
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) }));
IQUERY
PROVIDER
IQUERY
PROVIDER
IQUERY
PROVIDER
//is it the same thing?
s1 == s2
s1.Equals(s2)
String.Equals(s1, s2)
String.Compare(s1, s2) == 0
•
•
•
•