Apparently I need to clarify a bit....I know that Linq is separate from mvc, and I know that I can query data with EF and Linq.
What I was asking about is whether Scott Gu's "Linq Dynamic Query Library" (it's an extension to Linq that allows you to write dynamic queries; as opposed toall this hard typed crap that requires you to write the same queries over and over again for each
entity) works with whatever version of EF MVC4 (VS2012) ships with - EF version 5, is it?
alex_brambil...
Participant
761 Points
278 Posts
Linq Dynamic Query Library and MVC 4
Jan 07, 2013 11:23 PM|LINK
Anyone know if Scott Gu's Linq Dynamic Query Library (http://weblogs.asp.net/scottgu/archive/2008/01/07/dynamic-linq-part-1-using-the-linq-dynamic-query-library.aspx ) works with MVC 4? It looks a little old so I wasn't sure. If not is there an MVC 4 equivelent component?
Thanks
CPrakash82
All-Star
18154 Points
2831 Posts
Re: Linq Dynamic Query Library and MVC 4
Jan 07, 2013 11:29 PM|LINK
Yes, LINQ is entirely different and it works with MVC.
ignatandrei
All-Star
134491 Points
21566 Posts
Moderator
MVP
Re: Linq Dynamic Query Library and MVC 4
Jan 08, 2013 01:25 AM|LINK
The obtaining data from database have nothing to do with MVC,. You can oibtain via EF, NHibernate, others.
Please read http://msprogrammer.serviciipeweb.ro/2010/03/29/asp-net-mvc-orm-and-viewmodels/
alex_brambil...
Participant
761 Points
278 Posts
Re: Linq Dynamic Query Library and MVC 4
Jan 08, 2013 02:37 AM|LINK
Apparently I need to clarify a bit....I know that Linq is separate from mvc, and I know that I can query data with EF and Linq.
What I was asking about is whether Scott Gu's "Linq Dynamic Query Library" (it's an extension to Linq that allows you to write dynamic queries; as opposed toall this hard typed crap that requires you to write the same queries over and over again for each entity) works with whatever version of EF MVC4 (VS2012) ships with - EF version 5, is it?
CPrakash82
All-Star
18154 Points
2831 Posts
Re: Linq Dynamic Query Library and MVC 4
Jan 08, 2013 03:21 AM|LINK
Not sure about EF but .NET genericlly supports that, see here - http://msdn.microsoft.com/en-us/library/bb338811(v=vs.110).aspx
bruce (sqlwo...
All-Star
36644 Points
5432 Posts
Re: Linq Dynamic Query Library and MVC 4
Jan 08, 2013 03:32 AM|LINK
there is a github version based on scotts code. should work with MVC 4
https://github.com/davidfowl/DynamicLinq