Featured post
c# - Where is EntitySet<T>'s "Results View"? -
when looking @ linked entityset<t> of linq sql mapped entity, see following:

i'd see following (achieved using .asqueryable() extension method) can click little refresh icon , see content:

why can't see results view on regular plain entityset<t>?
also, i've noticed on this msdn page says:
in linq sql,
entityset<tentity>class implementsiqueryableinterface.
from can see, entityset<tentity> doesn't inherit either iqueryable nor iqueryable<t>. what's claim?
you'll find answer question
the results view works collections meet following conditions
- implement ienumerable or ienumerable (vb.net works ienumerable)
- do not implement ilist, ilist, icollection or icollection (c# restriction only)
- do not have debuggertypeproxy attribute
- system.core.dll loaded in debugee process
in particular #2, entityset<t> implement's ilist<t> therefore debugger won't show "results view" option.
using asqueryable extension method returns object implements iqueryable , ienumerable , therefore show "results view" option.
you can read more #2 in answer given in other question.
- Get link
- X
- Other Apps
Comments
Post a Comment