question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider enhancements to MVC for a grow up story from minimal actions

See original GitHub issue

We’d likely have an option specifically for FromServices behavior rather than a global EnableMinimalAPICompatibilityMode

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pranavkmcommented, Jan 21, 2022

@brunolins16 it’s about supporting https://docs.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-6.0#optional-parameters. Essentially make `

#nullable enable
public IActionResult Post(string? value);

the same as

#nullable disable
public IActionResult Post(string value = null);
0reactions
brunolins16commented, Jan 22, 2022

@pranavkm I thought it was already supported. Let me test it. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Minimum Viable Change (MVC) - Rich Nadworny
The goal is to not constrain your output and to not fasten in endless “enhancements” before going to market. It means that you're...
Read more >
Chapter 12. Best practices - ASP.NET MVC in Action with ...
Designing maintainable controllers, filters, and actions; Building maintainable views with minimum duplication; Designing and testing routes; Testing MVC ...
Read more >
ASP.NET Core updates in .NET 6 Preview 7
NET 6 Preview 7 is now available and includes many great new improvements to ASP.NET Core. Here's what's new in this preview release:....
Read more >
Low Ceremony, High Value: A Tour of Minimal APIs in .NET 6
This post introduces Minimal APIs, a new way to write lightweight HTTP APIs in ASP.NET Core.
Read more >
Why I No Longer Use MVC Frameworks - InfoQ
In traditional MVC, the action (controller) would call an update method on the model and upon success (or error) decide how to update...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found