Using Dynamic LINQ to get a filter for my Web API
Posted
by
Espo
on Programmers
See other posts from Programmers
or by Espo
Published on 2013-10-14T06:50:54Z
Indexed on
2013/10/24
10:10 UTC
Read the original article
Hit count: 247
We are considering using the Dynamic.CS linq-sample included in the "Samples" directory of visual studio 2008 for our WebAPI project to allow clients to query our data.
The interface would be something like this (In addition to the normal GET-methods):
public HttpResponseMessage List(string filter = null);
The plan is to use the dynamic library to parse the "filter"-variable and then execute the query agains the DB. Any thoughts if this is a good idea? Is it a security problem?
© Programmers or respective owner