.NET 5 REST API Tutorial: 05 Persisting entities with MongoDB

preview_player
Показать описание

This is part 5 of my .NET 5 REST API Tutorial. You will learn:
• How to implement a simple MongoDB repository
• How to run MongoDB as a docker container
• How to use Postman to interact with a REST API

#dotnet #restapi #tutorial
Рекомендации по теме
Комментарии
Автор

You sir are a fantastic teacher! I always find it hard to follow 40 minute videos and you have kept my attention to the point where I am going to bed later than I usually like to.

LPREZ
Автор

Definitely, you are one of the most underrated teacher on YouTube. Your explanation, made me understand this way better.

nani
Автор

Awesome, simple and stretch to the point. Only authorization and authentication are missing. I hope soon! Congrats!

renatoteixeiralima
Автор

Thanks for those tutorials, you explain things in a very simple way.
At 32:18 I believe the correct way to get all items from database is passing the filterBuilder.Empty property in the Find method of the collection, instead of passing a new BsonDocument. But it's just a detail.

Felipehsbr
Автор

Julio, we truly appreciate your outstanding presentations, coupled with a deep understanding of the subject matter. Your fluid hands-on approach, backed up by well organized working source code is an extremely powerful tool as well. You really are an exceptionally gifted teacher and your contributions are immense. Thank you for it all.

basabdattaray
Автор

as a developer who is absolutely sick of Java lately, just started watching your videos out of curiosity and wow, it looks like C# was actually written by professionals. i actually want to cry

YourMumsRightTit
Автор

Another great easy to understand tutorial, very good teacher

eliassal
Автор

The best teacher and the best tutorial. Thank you for your work) If you have free time and also have a knowledge base to work with Caches like Kafka or MQTT, you might create a tutorial with these caches by using Docker.

vladimirbozhek
Автор

I am very new to mongo explanation was awesome easy to understand for beginners as well keep up the good work. I request you to please do a series on docker. Thank you

kartheeknandini
Автор

Like and Subscribed! Really straightforward tutorial for beginner learning API start from scratch.🤗 Hope I will find your paid course useful to learn microservice basic as well.

patyue
Автор

Can you add authentication and authorization to this tutorial as well? Found the resource from reddit and really enjoyed the course!

anikaitmakkar
Автор

Very useful series.Thanks so much. Do you have SQL Server example too?

saiashok
Автор

A great set of videos, extremely well explained! Would we normally use ItemDtos/CreateItemDtos when dealing with Mongo or is there a reason we use the full Item entity when we used ItemDto with the in memory database?

nathanbrown
Автор

Let's assume your Item objects could contain a collection member List<Thing>. Does the MongoDBRepository class then need to know about the Thing-type or is IMongoCollection<Item> enough since Thing-objects will be serialized as nested objects?

diegoronkkomaki
Автор

~32:00 When no datetimeoffset serialization is used, the output is like this:

"CreatedDate": [
637935631245768400,
180
]

pantepember
Автор

Hi, I can not understand why you used BsonDocument instead of Func at 32:45. Could you explain it for me ?

nguyenbao
Автор

Great tutorials and explanations sir .. Do you have this source code available somewhere ?

satwant
Автор

I`ve faced an error "Element 'Id' does not match any field or property of class" after setup the general GET method. And the solution that helped me is adding [BsonIgnoreExtraElements] right on top of our Entities.Item class. Are there any other possible solutions for this issue? Or this one, which I described here is a good one?

oneaxetwofriends
Автор

Great tutorial. I am getting and error when trying to do 'docker run -d --rm --name mongo -p 27017:27017 -v mongodbdata:/data/db mongo'.

The error is 'docker: Error response from daemon: invalid volume specification: 'mongodbdata:/data/db'.'

I have been unable to resolve it. Please help!!!!

gideonmarkus
Автор

Could you please write video or give a post how to use postgres in net mvc project

evanmc