Print Page | Close Window

Open queries in Repository

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3051
Printed Date: 02-Jun-2025 at 9:47am


Topic: Open queries in Repository
Posted By: rbautistaole
Subject: Open queries in Repository
Date 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.



Replies:
Posted By: DenisK
Date 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 - 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 - http://drc.ideablade.com/xwiki/bin/view/Documentation/mvvm

Hope this helps.



Print Page | Close Window