ASP.NET Core 6 REST API Tutorial | MongoDB Database
ฝัง
- เผยแพร่เมื่อ 4 ต.ค. 2024
- How to build ASP.NET Core REST API from scratch using Visual Studio 2022, ASP.NET 6 and MongoDB database.
Use the following link to get started with MongoDB. Use the coupon code (MKT-VENKAT) to get $100 Atlas credit at checkout. Only for the first 10 users.
bit.ly/Venkat2
Notes and Slides
www.pragimtech...
All our free software training courses
www.pragimtech...
Slides, notes and to download our courses
www.pragimtech...
Let's gift education together
/ kudvenkat
I learned C# from you years ago. Still learning from you. The least I could do was contributing to your PayPal account. I always owe you and LOVE YOU!!!
Thanks for being the citizen of the earth with me!
hello Sir, you are simply amazing. your explanations are incredibly clear and valuable. thank you for sharing, keep it up
I still ask my self why this channel did not get 1M subscribers yet... Thank you a lot Sir
Miss you Mr.kudvenkat 😢
I've been following you for a long time and you keep impressing me with your clear explanations and the effort you put in your videos. A true sensei. May God bless you.
You deserve kudos for publishing these detailed tutorials with code. May God bless you to continue to publish tutorials on different technologies
Good knowledge for quick learning mongo. Awesome 👍👍.
Thank you for sharing the great content.
Thanks for these new tutorials Mr. Venkat! You're work is amazing good ser, keep it up & kudos from Argentina.
Great tutorial. Really enjoyed it
Watching C# tutorial, yet to go Dot NET, Angular, etc... Thank you very much venkat🤗
Really great video. Thanks mate.
This is awesome!! Classic! Classic!!
Absolute legend!!! Kudos to you sir
Happy new year welcome back, hopefully u will upload more frequently now 🙂
Looking forward to learn mongoDB from you
I have an error when I try to do any request: Value cannot be null. (Parameter 'connectionString'). I don't know how to resolve.
Hey venkat
Please add video serial number so we can identify video part in future also btw i have learnt so many things from your all tutorial
Thanks
checkout the playlist
very good strategy of teaching and managing the things like notes ,tutorials over websites I saw first time ever such things.
I am a CSE student please give me your important suggestion.
amazing tutorial !!!
Hi, thanks will this be continue for a full project using mongodb and .Net 6 api
it will be good if you do this example with asynchronous calls.
Sir, you are amazing!
thanks for the tutorial. But my program.cs file is differrent form yours and i can't use builder variable
Thank you so much sir :)
Appreciate it. Thanks
Thank you Sir for all your hard work and for sharing your knowledge. Can you also create a tutorial on Micro Service and Docker, please?
this session is very useful, if you can create one video on performance & joins it will be a really helpful.
Sir thanks for all your effort. Kindly create a short course on Dapper as well. There is no good course on this topic
Thanks a lot sir, got lot of information from this video and please can you explain how to PATCH update in mongo db c#
Great video
Hello Venkat, It has been a while since we heard your voice hope you are doing well. And will this mongo tutorial continue?
thank you sir!
this tutorial is differ with previous rest api implementation like used with automapper and async.
Welcome back
Make a Video on Patch Request using the same setup please 🤗🤗
Venkat sir we are missing your videos please upload
I had a doubt in controller class. Why use ActionResult and not IActionResult or IHttpActionResult as it an API call ?
What I have multiaple Collection ? how write DatabaseSettings
Please use dark theme for your video.😊
finally.....
🤗
Hey are you using any Webserver like Microsoft IIS, Kestrel or Nginx for this example? Or do you realize it without?
Great
I am getting error 'Cannot dynamically create an instance of type 'StudentManagement.Models.IStudentStoreDatabaseSettings'. Reason: Cannot create an instance of an interface.' can some one help me?
Hi, Sir, besides Student collection, if I wanna have another collection,example course, how should I separate the database connection class, or just add a course collection field to the same class?
I would like to know that too. Somebody?
Any one know the reason why kudvenkat not posted any video since 8 months?
Should the calls not be asynchronous to the database? Or is this unnecessary?
What about the address field?
Venkaaaaaat. Please create your own React.js
No new videos since 1 year?
How i can give to an specific user the verified badge to my app?
Why I get response status 404
Could you please explain what's that [FromBody] attribute in post method of the controller
It tells ur controller method to read the parameters from request body
It tells ur controller method to read the parameters from request body
hi, how can i connect with you, i need your paid support.
[Solved! See bottom of this comment]
When I try to run the project I get an error pop-up, saying "No process is associated with this object". My debug console ends with: "C:\Users\User\source
epos\StudentManangement\StudentManangement\bin\Debug
et6.0\StudentManangement.exe (process 14612) exited with code -532462766.
Press any key to close this window . . ."
Further, I get a debug/breakpoint error box that says: "StudentManangement.Services.StudentService': Unable to resolve service for type 'MongoDB.Driver.IMongoClient' while attempting to activate 'StudentManangement.Services.StudentService'.)'"
SOLUTION: Thankfully I was able to use @kudvenkat's Notes and Slides (see video description)
I was missing the "" code in the following in Program.cs:
builder.Services.AddSingleton(s =>
new MongoClient(builder.Configuration.GetValue("StudentStoreDatabaseSettings:ConnectionString")));
I try to do this for exercise but I couldn't recieve information about appsettins. It worked when I hard code that info.....
(this works)
public class TestStorageSettings : ITestStorageSettings
{
public string TestCollectionName { get; set; } = "Test";
public string ConnectionString { get; set; } = "mongodb://localhost:27017";
public string TestDbName { get; set; } = "Test";
}
What have I missed because naming is equal in appsettings, classes and interfaces but I only recieve empty strings.
Hah I found the reason. It was in program.cs file. First builder service was pointed in interface instead of class. Sorry to boder.