Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Releases: Net-Http-OData/Net.Http.WebApi.OData

Net.Http.WebApi.OData 5.1.0

12 May 14:12
0a1a1c2
Compare
Choose a tag to compare

Net.Http.WebApi.OData 5.1.0

Contains the following fixes:

  • #155 - Set the ODataException.Target to an appropriate value

view code changes

Net.Http.WebApi.OData 5.0.1

10 May 15:48
5b3d358
Compare
Choose a tag to compare

Net.Http.WebApi.OData 5.0.1

Contains the following fixes:

  • #51 - Error response must include Content-Language header

view code changes

Net.Http.WebApi.OData 5.0.0

25 Mar 15:46
a38df11
Compare
Choose a tag to compare

Library changes from Net.Http.WebApi.OData 4.2.1 to 5.0.0

All classes within Net.Http.WebApi.OData not specific to ASP.NET WebApi moved to Net.Http.OData (within Net.Http.OData 5.0.0).

Contains the following fixes:

  • The $format query option, if present in a request, MUST take precedence over the value(s) specified in the Accept request header.
  • #84 Nested property references resolve to the root property

Net.Http.WebApi.OData

+ public class ContentResult
- public static class HttpConfigurationODataExtensions
- public static class HttpRequestMessageExtensions
+ public class ODataController
+ public class ODataErrorContentResult
- public sealed class ODataException
- public static class ODataHeaderNames
- public static class ODataHeaderValues
+ public static class ODataHttpConfigurationExtensions
+ public static class ODataHttpRequestMessageExtensions
- public enum ODataIsolationLevel
- public enum ODataMetadataLevel
+ public static class ODataMetadataLevelExtensions
+ public sealed class ODataRequestDelegatingHandler
- public sealed class ODataRequestOptions
- public sealed class ODataResponseContent
- public sealed class ODataVersionHeaderValidationAttribute

ODataHttpConfigurationExtensions

- public static void UseOData(this HttpConfiguration configuration, Action<EntityDataModelBuilder> entityDataModelBuilderCallback, IEqualityComparer<string> entitySetNameComparer)
+ public static void UseOData(this HttpConfiguration configuration, Action<EntityDataModelBuilder> entityDataModelBuilderCallback, DateTimeStyles dateTimeOffsetParserStyle)
+ public static void UseOData(this HttpConfiguration configuration, Action<EntityDataModelBuilder> entityDataModelBuilderCallback, DateTimeStyles dateTimeOffsetParserStyle, IEqualityComparer<string> entitySetNameComparer)

ODataHttpRequestMessageExtensions

- public static HttpResponseMessage CreateODataErrorResponse(this HttpRequestMessage request, HttpStatusCode statusCode, string message)
- public static HttpResponseMessage CreateODataErrorResponse(this HttpRequestMessage request, HttpStatusCode statusCode, string message, string target)
- public static HttpResponseMessage CreateODataErrorResponse(this HttpRequestMessage request, ODataException exception)
- public static HttpResponseMessage CreateODataResponse(this HttpRequestMessage request, HttpStatusCode statusCode)
- public static HttpResponseMessage CreateODataResponse(this HttpRequestMessage request, HttpStatusCode statusCode, string value)
- public static HttpResponseMessage CreateODataResponse(this HttpRequestMessage request, string value)
- public static HttpResponseMessage CreateODataResponse<T>(this HttpRequestMessage request, HttpStatusCode statusCode, T value)
- public static Uri ResolveODataContextUri(this HttpRequestMessage request)
- public static Uri ResolveODataContextUri(this HttpRequestMessage request, EntitySet entitySet)
- public static Uri ResolveODataContextUri(this HttpRequestMessage request, EntitySet entitySet, SelectExpandQueryOption selectExpandQueryOption)
- public static Uri ResolveODataContextUri<TEntityKey>(this HttpRequestMessage request, EntitySet entitySet, TEntityKey entityKey)
- public static Uri ResolveODataContextUri<TEntityKey>(this HttpRequestMessage request, EntitySet entitySet, TEntityKey entityKey, string propertyName)
- public static Uri ResolveODataEntityUri<TEntityKey>(this HttpRequestMessage request, EntitySet entitySet, TEntityKey entityKey)
+ public static bool IsODataMetadataRequest(this HttpRequestMessage request)
+ public static bool IsODataRequest(this HttpRequestMessage request)
+ public static string ODataContext(this HttpRequestMessage request)
+ public static string ODataContext(this HttpRequestMessage request, EntitySet entitySet)
+ public static string ODataContext(this HttpRequestMessage request, EntitySet entitySet, SelectExpandQueryOption selectQueryOption)
+ public static string ODataContext<TEntityKey>(this HttpRequestMessage request, EntitySet entitySet)
+ public static string ODataContext<TEntityKey>(this HttpRequestMessage request, EntitySet entitySet, TEntityKey entityKey, string propertyName)
+ public static EntitySet ODataEntitySet(this HttpRequestMessage request)
+ public static string ODataId<TEntityKey>(this HttpRequestMessage request, EntitySet entitySet, TEntityKey entityKey)
+ public static string ODataNextLink(this HttpRequestMessage request, ODataQueryOptions queryOptions, int skip, int resultsPerPage)
+ public static ODataRequestOptions ODataRequestOptions(this HttpRequestMessage request)

Metadata

ODataMetadataController

- public sealed class ODataMetadataController : ApiController
+ public sealed class ODataMetadataController : ODataController
- public HttpResponseMessage Get()
+ public IHttpActionResult Get()

ServiceDocumentODataController

- public HttpResponseMessage Get()
+ public IHttpActionResult Get()

Query.Model

All classes within Net.Http.WebApi.OData.Model moved to Net.Http.OData.Model (within Net.Http.OData 5.0.0)

Query

All classes within Net.Http.WebApi.OData.Query moved to Net.Http.OData.Query (within Net.Http.OData 5.0.0)

view code changes

Net.Http.WebApi.OData 4.2.1

02 Jan 12:48
d8724dd
Compare
Choose a tag to compare

Net.Http.WebApi.OData 4.2.1

Contains the following fixes:

#146 $select=* should not include navigation properties

view code changes

Net.Http.WebApi.OData 4.2.0

24 Dec 11:42
02243ca
Compare
Choose a tag to compare

Net.Http.WebApi.OData 4.2.0

Includes the following enhancements:

#139 Ensure support for a collection on a type where the collection contains a base type of the parent object
#140 Ensure support for a sub type as a property on a type
#141 Ensure navigation properties are properly set
#142 Set the nullable flag in the metadata programmatically rather than hard coding false
#144 Add an IsNavigable property to EdmProperty

Contains the following fixes:

#143 Missing filter functions in the metadata document

view code changes

Net.Http.WebApi.OData 4.1.6

26 Nov 13:27
a2d4a00
Compare
Choose a tag to compare

Net.Http.WebApi.OData 4.1.6

#135 Unknown property in query option should result in Bad Request instead of internal server error
#136 Use ODataException when throwing based upon URI input

view code changes

Net.Http.WebApi.OData 4.1.5

21 Nov 13:33
0068d2a
Compare
Choose a tag to compare

Net.Http.WebApi.OData 4.1.5

view code changes

Net.Http.WebApi.OData 4.1.4

15 Nov 15:34
5e8c48d
Compare
Choose a tag to compare

Net.Http.WebApi.OData 4.1.4

view code changes

Net.Http.WebApi.OData 4.1.3

01 Dec 10:41
01d25a6
Compare
Choose a tag to compare

Net.Http.WebApi.OData 4.1.3

#127 Throw a bad request exception if the $filter cannot be parsed successfully
#129 Improve number parsing to support positive signed values
#130 Don't require the L suffix for int64 values above 2147483647

Updated to Microsoft.AspNet.WebApi.Core 5.2.7

view code changes

Net.Http.WebApi.OData 4.1.2

07 Sep 08:01
bf729a3
Compare
Choose a tag to compare

Net.Http.WebApi.OData 4.1.2

#125 Parsing string with \ or / fails

Updated to Microsoft.AspNet.WebApi.Core 5.2.6

view code changes