Using Dynamic LINQ to get a filter for my Web API
- by Espo
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?