Skip to content

Joker.OData v3.0.0

Compare
Choose a tag to compare
@tomasfabian tomasfabian released this 24 Sep 14:17
· 102 commits to master since this release

Breaking changes:

ODataController<TEntity>

Signature changes:

  • from Task<int> OnPost to Task<IActionResult> OnPostAsync(TEntity entity)
  • from Task<int> OnPut to Task<IActionResult> OnPutAsync(TEntity entity)
  • from Task<int> OnPatch to Task<IActionResult> OnPatchAsync(TEntity entity)
  • from Task<int> OnDelete to Task<IActionResult> OnDeleteAsync(params object[] keys)
  • Added virtual ValidatePostAsync to Post, ValidatePatchAsync to Patch, ValidatePutAsync into Put and ValidateDeleteAsync into Delete

Base call change:

  • Patch does not call OnPut anymore but OnPatch

ReadOnlyODataController<TEntity>

Signature changes:

  • OkObjectResult Get return type changed to IActionResult