DEV Community

Cover image for .NET Core 3.1 Web API & Entity Framework Jumpstart - Part 1

.NET Core 3.1 Web API & Entity Framework Jumpstart - Part 1

Patrick God on January 17, 2020

This tutorial series is now also available as an online video course. You can watch the first hour on YouTube or get the complete course on Udemy....
Collapse
 
manassehv2 profile image
ManassehV2

Thank you very much Patrick for sharing your knowledge in an interesting way. I went through it form start to end and It helped me a lot. It's good people like you who makes the internet a useful place. Thank you very much once again.

Collapse
 
_patrickgod profile image
Patrick God

Thank you so much for your kind words! Glad I could help. :)

Collapse
 
samselfridge profile image
samselfridge

Hey If anyone is getting the Kestrel error about https: "Unable to start Kestrel.
System.InvalidOperationException: Unable to configure HTTPS endpoint."

I addressed this by commenting out the "app.UseHttpsRedirection()" as mentioned but also had to remove "localhost:5001;" from the applicationUrl in launchSettings.json.

Seems to be working, if things start breaking I'll update this comment with any solution I find.

Collapse
 
_patrickgod profile image
Patrick God

Hi,
Thank you very much for sharing that! :)
Have a good one!
Patrick

Collapse
 
johnziss9 profile image
John

Amazing! I have gone through quite a few .Net Core tutorials but none explained it in such way to understand what everything does clearly.

Keep it up Patrick!

Looking forward to the next one!

Thank you!

Collapse
 
_patrickgod profile image
Patrick God

Your comment makes me happy. Thank you! :)

Collapse
 
ekosetiyo13 profile image
EkoSetiyo13

can i get source code ? pls

Collapse
 
_patrickgod profile image
Patrick God

Hey,

I think I will create a GitHub repository soon with the complete project.
Until then, please refer to the code in the article. It really is the complete thing.

Take care,
Patrick

Collapse
 
ekosetiyo13 profile image
EkoSetiyo13

i get error in response.
addcharacterDTO cannot add in characterDTO.
i dont know what i can do

Thread Thread
 
informagico profile image
Alessandro Magoga

Hi, I think you're missing something in the AutoMapperProfile class.
I uploaded my own source code following this tutorial: github.com/informagico/dotnet-rpg

Hope it can help,
cheers!

Thread Thread
 
ekosetiyo13 profile image
EkoSetiyo13

Hi, Thanks you brother.

Collapse
 
nothingnull profile image
NothingNull • Edited

I have no idea why the response that I received, is "1", not the JSON string of the knight character as your screenshot. I also reviewed your source code and it is the same with mine...

dev-to-uploads.s3.amazonaws.com/i/...

Collapse
 
_patrickgod profile image
Patrick God

That's strange... have you tried to call this URL in the browser? Maybe something's wrong with Postman.

Apart from that, you could try to watch the video tutorial on YouTube: youtu.be/H4qg9HJX_SE

Maybe this helps.

Take care,
Patrick

Collapse
 
zoltanhalasz profile image
Zoltan Halasz

Really nice tutorial. Been through a few, and this is top quality.

Collapse
 
_patrickgod profile image
Patrick God

Thank you very much! :)

Collapse
 
johannescleve profile image
Johannes Cleve

Great tutorial. Can't wait for the next one!

Collapse
 
_patrickgod profile image
Patrick God

Thank you very much! Glad you like it! :)

Collapse
 
aaiing profile image
AAI INGENIERIA

Hi, thanks fot the tutorial, do you have a .net core graphql auth with web tokens?

Collapse
 
_patrickgod profile image
Patrick God

Hey,
I'm afraid I don't, but I put it on the list. So maybe soon. ;)
Take care,
Patrick

Collapse
 
lfin90 profile image
Aleksey Levin

Thanks for this useful material.
Perhaps I found a typo:

For instance UseHttpRedirection adds middleware for redirecting HTTP requests to HTTPS.

Maybe do you mean about UseHttpsRedirection?

Collapse
 
tomekdorobisz profile image
tomekdorobisz

The best jumpstart I found so far. :)