.net - Serialize value to OData -


There is a function (ODataLib 5.6.1 maybe) OData URI format to a .NET primitive types to order (for) is

for example:

  new Dinanktaim (2000, 12, 12) .ToODataString () // will return: datetime'2000-12-12T12: 00 ' 

static class with Microsoft.Data.OData.Query.ODataUriUtils, you In order to sequentially ConvertToUriLiteral can call for the value literally Uri. Public Static String ConvertToUriLiteral (Object Value, ODataVersion Version) Public Static String ConvertToUriLiteral (Object Value, ODataVersion Version, IEdmModel Model) Public Static String ConvertToUriLiteral (Object Value, ODataVersion Version, IEdmModel Model, ODataFormat) Format)

and you can call ConvertFromUriLiteral to alphabetical.

  public static object ConvertFromUriLiteral (string value, ODataVersion version) public static object ConvertFromUri literal (string value, Odatavirsian version, Aiidimmodal model, Aiidimtaipreprefrens reference)  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -