Skip to content

OData - Same Named Function in Two Configurations Causes System.InvalidOperationException on Startup #697

Closed
@benhysell

Description

@benhysell

tldr - In the OData example project I added a function with the same name to two different configurations. The examples can no longer run. I used to be able to add functions with the same name to two different OData endpoints without issue.

Example Repo - https://github.com/benhysell/aspnet-api-versioning
Example Project - https://github.com/benhysell/aspnet-api-versioning/tree/master/samples/aspnetcore/SwaggerODataSample

Using the examples I've duplicated the MostExpensive function from Order to Person via the steps below to trigger the exception.

Steps to Reproduce

Is it allowable to have the same named function in two different models? And if not why not?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions