OData / OData/AspNetCoreOData

Consider moving model creation for Json controllers into builder/factory class resolved from DI

Open
#254 1 comment 0 reactions 1 assignee View on GitHub

@xuzhg is already working on this.

Since Aug 31, 2021.

feature
Dominant language
C#
Stars
505
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Currently (v8.0.1) there is no way to control automatic model creation for Json controllers inside ODataQueryParameterBindingAttribute and EnableQueryAttribute.

This makes few things much harder to configure, like run EnableLowerCamelCase() on builder before builder.GetEdmModel().

Since both attributes have access to (global) DI container, please consider moving EDM model (or builder) creation to separate builder/factory class resolved via DI.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.