Skip to content

Conversation

@xavierjohn
Copy link
Collaborator

@xavierjohn xavierjohn commented Mar 28, 2025

Fix compiler errors and update Odata sample

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Summary of the changes (Less than 80 chars)

Description

Updated the OData sample and fixed the compiler error

Copy link
Collaborator

@commonsensesoftware commonsensesoftware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this looks fine with a couple of minor housekeeping changes and then it can be merged.

Email = "[email protected]",
Phone = "555-555-5555",
},
new() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Was there a reason you felt compelled to add yourself? 😆

// Add services to the container.

builder.Services.AddControllers().AddOData();
builder.Services.AddControllers()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this auto-wrap? I'd prefer that this be one of the following:

  1. A single line
  2. .AddControllers and .AddOData align vertically

I don't have a super strong opinion about which one you choose

@@ -0,0 +1,22 @@
@HostAddress = https://localhost:5001
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how this file is necessary at all. The OpenAPI example supplants the need for it. While I'm not completely opposed to the idea, this file just feels one-off and out of sync with the other examples. I'm not convinced this is worth keeping - yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants