C# adding data to a SQL table with ASP.NET throws an error System.InvalidCastException: "Specified cast is not valid" This is for a foreign key ...
C# adding data to a SQL table with ASP.NET throws an error System.InvalidCastException: "Specified cast is not valid" This is for a foreign key ...
The normal path in WEB API is to have your "Entitiy" and the "DTO". For Example public class Product // DB Entity { public int Id { get; set; } ...
I have a self hosted Web API in console project. I need to authroize the user on role based or domain based. How can i achieve it. Sample Code : -- ...
I have ODataController with a Post method in it which should return a URL to a newly created OData resource, something like the following: In my ca ...
I have a standard MVC API OData enabled service which works under anonymous authentication. I would like to pass a web API key to the application...wh ...
I have created a Test OdataController which returns the response in the atom format as given below,I want to use this as Odata Feed in Excel but I get ...
So I'm having a bit of a problem... the thing is that I have a base class that has implementation for all GET/POST/PUT/DELETE and it's a Generic class ...
In my web service I've setup for batch requests. I wrapped the DefaultODataBatchHandler class just to add break points. It is processing the requests ...
I have an ODataController with 2 methods: With the standard WebApiConfig: And I can type mydomain.com/odata/items(guid'XXXXXXXX-XXXX-XXXX-XXXX-X ...
I have two classes, Vehicle and OwnershipRecord and neither can be persisted to the database without the other. A Vehicle must have at least one Owner ...
I am reading the OData V4 update blog: https://blogs.msdn.microsoft.com/webdev/2014/03/13/getting-started-with-asp-net-web-api-2-2-for-odata-v4-0/ It ...
I have the need to migrate my traditional Web API 2 Data controllers over to OData v4 style data controllers. This works very easily with the standard ...
I have OdataService with CustDetails table (I am using Entity Framework). In the table I have column PostalCode of string type. When I sort the data i ...
I try use System.Web.OData.ODataController in WebAPI 2. WebConfig.cs Controller: When I try query data I get error: When I replace ODataCon ...
I have an OData service that is implemented with several MVC controllers using ODataController. I am having an issue with all but one of the controlle ...
I encapsulated the odata container because of some extensions: When i use my .dll ( using the Connector class), i have an empty result ( statuscode ...
The scenario is an application that uses OData v4, server-side API based on an Entity Framework model using ODataLib, client-side using the OData clie ...
I'm not sure if I'm doing this right, as I'm new to whole these systems, but I want to manage my kendo grid data (pagination, filters, etc). I'm using ...
i have an oData enabled classic REST web api controller with a Get function like i need to understand how i can make a call to get only the count ...
I use entity framework code first along with OData controllers in spa application, for my composite tables (forexample : Personnel -> PayRolls) i h ...