Last post Aug 14, 2008 06:09 PM by robconery
Jul 08, 2008 11:03 AM|jwscuba|LINK
I know that this is most likley a stupid question. But in the sense of having the repository only return what is needed, why not return IEnumerable rather tan IQueryable. I am sure it is actually because we need IQueryable for something, but unless I am
wrong can't the pipes and filters and everything else be done if the repository was returning an IEnumerable.
Jul 10, 2008 08:47 PM|robconery|LINK
Will delayed execution work with IEnumerable? If so - what's the gain here?
Jul 11, 2008 12:02 AM|jwscuba|LINK
i am not sure in the gains one way or the other. I guess that I thought I read somwhere that IEnumerable was somhow lighter or better for performance. I am just trying to get a handle on why one would be picked over the other. Why choose one over the
I was just thinking id the goal of the repository was to return the simplist collection wouldn't that be IEnumerable. As far as deleyed execution, I would have to say I don't know how the 2 differ.
Aug 14, 2008 06:09 PM|robconery|LINK
This is something I've thought about a lot and ultimately went with IQueryable. The main reason is to be sure I provide a rich query surface to the logic classes for people who want to customize. That said I should probably look into this more :).