I know I'm prematurely asking, I really didn't do much digging on why, but I was hoping that someone might have a quick response to this question. This dilemma arose when building all the SPROC's for my data schema and got to needing a "GetEntities" SPROC which includes paging and sorting...
Can anyone tell me why in the SqlArticleProvider Marco put the function of GetArticles() in a SPROC, but in SqlStoreProvider, the GetProducts() (the query) is within the method?
From first look, both GetArticles() & GetProducts() seem quite similar, they get all data fields and include params for pageIndex and pageSize, the only difference I see is that GetProducts() includes a sortExpression. Is that the reason? Though it can be passed on to a SPROC too..
Is there a specific reason for this, or is it just meant to break up the rhythm and show variations of what can be done?
Thank you all,
Ronnie