Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal API parameter binding for argument lists #26540

Closed
Tracked by #26326
Rick-Anderson opened this issue Jul 25, 2022 · 7 comments · Fixed by #26985
Closed
Tracked by #26326

Minimal API parameter binding for argument lists #26540

Rick-Anderson opened this issue Jul 25, 2022 · 7 comments · Fixed by #26985
Labels
code help wanted Sample code help wanted.

Comments

@Rick-Anderson
Copy link
Contributor

Rick-Anderson commented Jul 25, 2022

Minimal API parameter binding for argument lists

see dotnet/aspnetcore#41325

Put code in https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/minimal-apis/arg-lists/readme.txt and delete readme.txt

Use

var connection = new SqliteConnection("DataSource=:memory:");
connection.Open();

@brunolins16 to review

@Rick-Anderson
Copy link
Contributor Author

@fiyazbinhasan @martincostello anyone interested in writing this sample code?

@martincostello
Copy link
Member

Sure, I can put something together for this.

@martincostello
Copy link
Member

@Rick-Anderson I'll put together a specific example a bit later today or tomorrow, but I'd already written a sample app for an internal talk at my work last month, so I've just put the whole file for all the new features I did examples for as far as preview 5/6 here. The specific one for [AsParameters] is here.

@Rick-Anderson
Copy link
Contributor Author

@martincostello can you put your sample in https://github.com/dotnet/AspNetCore.Docs.Samples/tree/main/fundamentals/minimal-apis/samples ?

@Rick-Anderson
Copy link
Contributor Author

@martincostello do you have an ETA on when you'll be able to write this sample? If possible, use a variation of todoitems

@martincostello
Copy link
Member

Sorry for the delay with this - been quite busy with other things at the moment to get around to this. I'll aim to get you something for that other repo by the end of next week.

@martincostello
Copy link
Member

dotnet/AspNetCore.Docs.Samples#26

Rick-Anderson pushed a commit to dotnet/AspNetCore.Docs.Samples that referenced this issue Aug 29, 2022
richjames1211 added a commit to richjames1211/Docs-Samples-Asp.NetCore that referenced this issue Oct 21, 2022
renawolford6 added a commit to renawolford6/Asp-dot-Net-Core-Docs that referenced this issue Nov 9, 2022
michellesdev3 added a commit to michellesdev3/AspNetCore-Docs-Common that referenced this issue Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code help wanted Sample code help wanted.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants