ASP .NET MVC 4 WebApi: Manually handle OData queries

I just stumbled across this old post and I’m adding this answer as it’s now very easy to handle the OData queries yourself. Here’s an example: [HttpGet] [ActionName(“Example”)] public IEnumerable<Poco> GetExample(ODataQueryOptions<Poco> queryOptions) { var data = new Poco[] { new Poco() { id = 1, name = “one”, type = “a” }, new Poco() { … Read more

OData vs GraphQL [closed]

I have researched and also tried with Both GraphQL in Dot Net and Odata in DotNet Web API to create a working demo and What I found are Developer Usability Considering you have existing WebAPI(DotNet Framework) and want to migrate to GraphQL or OData compatible WebAPI then my answer is to choose OData because of … Read more

Could not load file or assembly System.Net.Http, Version=4.0.0.0 with ASP.NET (MVC 4) Web API OData Prerelease

Visual Studio 2013 has a new feature to take care of this. When you build the app, you should see warnings about different versions of an assembly being referenced. Double click the warning to add assembly binding redirects to the web.config. See http://msdn.microsoft.com/en-us/library/2fc472t2.aspx for more details. jeff.eynon notes below that you need to have the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)