This repository has been archived by the owner on Dec 29, 2020. It is now read-only.
Net.Http.WebApi.OData 5.0.0
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)