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

Net.Http.OData 5.1.0

Latest
Compare
Choose a tag to compare
@TrevorPilley TrevorPilley released this 05 May 15:20
· 6 commits to master since this release
29d08fb

This release contains the following:

Enhancements

#10 - Add support for the time function in OData 4.0
#11 - Add support for the totalseconds function in OData 4.0
#12 - Add details to ODataError
#13 - Set the ODataException.Target to an appropriate value

API Changes

+ public class ODataErrorDetail
+ public class ODataPropertyNames

ODataError

+ public IEnumerable<ODataErrorDetail> Details { get; set; }

ODataErrorContent

- public static ODataErrorContent Create(int code, string message, string target)
+ public static ODataErrorContent Create(int code, string message, string target, IEnumerable<ODataErrorDetail> details = null)

ODataException

- public static ODataException BadRequest(string message)
- public static ODataException NotAcceptable(string message)
- public static ODataException NotImplemented(string message)
- public static ODataException PreconditionFailed(string message)
- public static ODataException UnsupportedMediaType(string message)
+ public static ODataException BadRequest(string message, string target = null, ODataException innerException = null)
+ public static ODataException NotAcceptable(string message, string target = null, ODataException innerException = null)
+ public static ODataException NotImplemented(string message, string target = null, ODataException innerException = null)
+ public static ODataException PreconditionFailed(string message, string target = null, ODataException innerException = null)
+ public static ODataException UnsupportedMediaType(string message, string target = null, ODataException innerException = null)
+ public ODataErrorDetail ToODataErrorDetail()

Query

AllowedFunctions

+ Time
+ TotalSeconds

view code changes