New Posts New Posts RSS Feed: Open queries in Repository
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Open queries in Repository

 Post Reply Post Reply
Author
rbautistaole View Drop Down
Newbie
Newbie


Joined: 01-Apr-2011
Posts: 37
Post Options Post Options   Quote rbautistaole Quote  Post ReplyReply Direct Link To This Post Topic: Open queries in Repository
    Posted: 24-Oct-2011 at 6:06pm
Hi.
I´m using the repository o data service pattern to acces my datalayer. I have a requeriment to show a dialog with all properties from any entity to make a search. How should be i to build a repository service  to the parameter to the open query to search in the EntityManager?. i.e what should be the type to make the query to the entitymanager?
 
thanks in advanced.
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 25-Oct-2011 at 5:15pm
Hi rbautistaole;

It sounds like you want to build a search query dynamically. If that's the case, the query type should IQueryable. You can see http://drc.ideablade.com/xwiki/bin/view/Documentation/dynamic-queries for more details.


We also have a few samples that demonstrate how to do repository pattern with DevForce. http://drc.ideablade.com/xwiki/bin/view/Documentation/mvvm

Hope this helps.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down