How to get Web API OData v4 to use DateTime

前端 未结 12 1206
时光取名叫无心
时光取名叫无心 2020-12-02 14:50

I have a fairly large data model that I want to expose using Web API OData using the OData V4 protocol.

The underlying data is stored in a SQL Server 2012 database.

12条回答
  •  無奈伤痛
    2020-12-02 15:13

    Looks like a mapping DateTimeOffset <-> DateTime will be included in Microsoft ASP.NET Web API 2.2 for OData v4.0 5.4.0:

    https://github.com/OData/WebApi/commit/2717aec772fa2f69a2011e841ffdd385823ae822

提交回复
热议问题