God bless you man for so long I have struggled with the simplest issue, you have finally explained it in a way for the penny to drop in my head. There is hope for me yet
Finished your course and it was great and easy! The database stuff has a lot of built in class names to wrap my head around, so some definitions that are simply explained would be welcomed. Thanks! :)
That was an hour well spent. Thanks. In the last few weeks I've watched a lot of mvc videos. And I'm now at a stage where I can predict where you're going. Got a couple of demo applications in my visual studio. Ready to move on. :-) One question if you please: where should I continue? razor, blazor or react?
Nice tutorial, however in minute 37:29, you added the foreach sentence and I do not know why you used "Model" (uppercase). I just wrote it and it worked, but I do not why or where it comes from.
In HomeController class in Expenses method you are passing allExpenses object into View() and this is how you pass Model data to Expenses View. Now in View you can get this data by typing @model so if in HomeController you passed List then in View you type @model List with small case "model", this is how you are getting passed data and now you can use this data with upper case "Model", this is just a convention that first you type @model and then @Model to use data from passed object.
Nice video, i did run into a few minor problems. I diverted from the course and added my SQL database instead of InMemory db. This gave some problems on certifying the connection but i solved that. Using ID will let EF generate the table with IDENTITY_INSERT which means you can not provide the ID your self but have to let the database do that. I removed that by remaming Id to ExpenseId but EF will start every time from fresh and will try to insert the already existing 0 again so the code starts updating existing rows. I need to build in a check for that and get max(Id) n+ 1 at each newe run probably
After 35:10 running the project gives me an error saying that it cannot open dll file in the debug folder because it is denied. I'm literally using the same versions of dotnet and the nuget packages as in the video. Can't find a solution for this online, strange...
have you found a way? mine says Severity Code Description Project File Line Suppression State Error (active) CS2012 Cannot open 'C:\Users\Hyu\source epos\Opdracht2\Opdracht2\obj\Debug et8.0\Opdracht2.dll' for writing -- 'Access to the path 'C:\Users\Hyu\source epos\Opdracht2\Opdracht2\obj\Debug et8.0\Opdracht2.dll' is denied.' Opdracht2 C:\Users\Hyu\source epos\Opdracht2\Opdracht2\CSC 1
@@hieuphan9781 I tried working from scratch on a different computer and it worked. I then sent that new project to my original computer and I had no issue running the project and working on from there
If you're using a Data Folder when you start setting up the Database it might not recognize the Class unless you type it as Models.Class. So for example, DbSet would instead be DbSet Although if you even have a Data folder by default you've probably done something wrong lol.
I have an error System.ArgumentNullException: 'Value cannot be null. (Parameter 'entity')' on my _context.Expenses.Remove(expenseInDb); even as I checked multiple times and followed everything atleast as far as I know.
hi! you've probably solved it by now, but i got the same problem and fixed it by changing "asp-route-itemid" to "asp-route-id" in the table in Expense.cs. just writing in case it helps someone else out there:)
i love u,wallah you are the best, i wish God help you too much, this world needs several expert like u; honestly i don't know how too thank u ; just know that i love you really
If you correctly added asp-action and asp-controller to the form, then you should be able to add the breakpoint and hover over model, then hover over the tiny expand triangle in the dialogue that pops up, and the information you entered before hitting the submit button should be there.
Hello, Thanks for video, how to resolve this mistake? System.NullReferenceException: 'Object reference not set to an instance of an object.' Microsoft.AspNetCore.Mvc.Razor.RazorPage.Model.get returned null. in : foreach(var expense in Model)
🚀C# Progress Academy - Skyrocket your C# skills with the ultimate course bundle: academy.tutorials.eu/p/csharp-progress-academy
One of the Best C# MVC Tutorials I have ever seen!!
God bless you man for so long I have struggled with the simplest issue, you have finally explained it in a way for the penny to drop in my head. There is hope for me yet
This was great. None of the other tutorials from other creators worked for me.
The the best MVC demo I've seen so far
I'm glad you like it.
Finished your course and it was great and easy! The database stuff has a lot of built in class names to wrap my head around, so some definitions that are simply explained would be welcomed. Thanks! :)
The best and latest course that I found on UA-cam . Thanks you for your amazing contribution for that. Thanks ❤
I understood everything properly until 25:26 and then he just changed to hypersonic speed and went: "haha database goes brrrrr"
same..I got lost! curious to know if you found some resources that helped u better understand that part?
Awesome, short and simple to understand tutorial for MVC
lovely! this is a kind of tutorial... a beginner can start with!
That was an hour well spent. Thanks. In the last few weeks I've watched a lot of mvc videos. And I'm now at a stage where I can predict where you're going. Got a couple of demo applications in my visual studio. Ready to move on. :-) One question if you please: where should I continue? razor, blazor or react?
I like this. Simple and straightforward. Learned tons. Thank you!
Thanks for sharing, very intuitive👍
What a great tutorial this is! Hat off to you! Keep up this great work!
Amazing i learn a lot
Thank you, was a great hour!
This was super helpful!
I have watched this video and replicated the same project.Awesome tutorial.Thank you
Brilliant vid.
Keep it up bro
Nice tutorial, however in minute 37:29, you added the foreach sentence and I do not know why you used "Model" (uppercase). I just wrote it and it worked, but I do not why or where it comes from.
In HomeController class in Expenses method you are passing allExpenses object into View() and this is how you pass Model data to Expenses View.
Now in View you can get this data by typing @model so if in HomeController you passed List then in View you type @model List with small case "model", this is how you are getting passed data and now you can use this data with upper case "Model", this is just a convention that first you type @model and then @Model to use data from passed object.
tnx a lot, very beginner friendly
Nice video, i did run into a few minor problems. I diverted from the course and added my SQL database instead of InMemory db. This gave some problems on certifying the connection but i solved that. Using ID will let EF generate the table with IDENTITY_INSERT which means you can not provide the ID your self but have to let the database do that. I removed that by remaming Id to ExpenseId but EF will start every time from fresh and will try to insert the already existing 0 again so the code starts updating existing rows. I need to build in a check for that and get max(Id) n+ 1 at each newe run probably
After 35:10 running the project gives me an error saying that it cannot open dll file in the debug folder because it is denied. I'm literally using the same versions of dotnet and the nuget packages as in the video. Can't find a solution for this online, strange...
have you found a way? mine says Severity Code Description Project File Line Suppression State
Error (active) CS2012 Cannot open 'C:\Users\Hyu\source
epos\Opdracht2\Opdracht2\obj\Debug
et8.0\Opdracht2.dll' for writing -- 'Access to the path 'C:\Users\Hyu\source
epos\Opdracht2\Opdracht2\obj\Debug
et8.0\Opdracht2.dll' is denied.' Opdracht2 C:\Users\Hyu\source
epos\Opdracht2\Opdracht2\CSC 1
@@hieuphan9781 I tried working from scratch on a different computer and it worked. I then sent that new project to my original computer and I had no issue running the project and working on from there
Waw.
Bro, you are awesome.
Really good tutorial.
Well done!
thank you tutorialsEU, i got a .net dev interview tomorrow (not sure how i got it cause it said 3 YOE req and I got none) wish me luck ;)
Beginner friendly❤
If you're using a Data Folder when you start setting up the Database it might not recognize the Class unless you type it as Models.Class. So for example, DbSet would instead be DbSet
Although if you even have a Data folder by default you've probably done something wrong lol.
Thanks, I can't express my words, I was a great help to me.
Excelent my friend, step by step, congratulations!!!!
Thanks for the tutorial, I have a regional issue which is I cannot enter comma delimited values, would you please advice?
Thanks, I can now add ASP into my resume :)
Nice crud app, thank you for the video
What if I want to use Mysql? Do I just need to change it at the program.cs?
Mindblowing surely will subscribe.
Glad to see you in our membership now 🚀
I have an error System.ArgumentNullException: 'Value cannot be null. (Parameter 'entity')' on my _context.Expenses.Remove(expenseInDb); even as I checked multiple times and followed everything atleast as far as I know.
hi! you've probably solved it by now, but i got the same problem and fixed it by changing "asp-route-itemid" to "asp-route-id" in the table in Expense.cs. just writing in case it helps someone else out there:)
Great tutorial, thanks 👍
i love u,wallah you are the best, i wish God help you too much, this world needs several expert like u; honestly i don't know how too thank u ; just know that i love you really
Simplicity of mvc is beautiful
Can we get the whole project, since i have a bug in my code which i cant fix.....
Hello. I just finished without an error. What was the issue that you had with yours? :)
@@GreyKlouds can u help me? Mine says it cant acces or open the dll file
when i hover over the model it is not showing me the values i entered
If you correctly added asp-action and asp-controller to the form, then you should be able to add the breakpoint and hover over model, then hover over the tiny expand triangle in the dialogue that pops up, and the information you entered before hitting the submit button should be there.
I have a bug that says cannot open a ...dll file idk what to do? pls help
how to link oracle database to asp net 8?
The data is not saved?
Nope, because it is using a "in memory database". But you can create your own database and change the string connection and DbContext.
Don't know if you've been already told about it, but you look just like Mitch Lucker from Suicide Silence. You just need to know that
Ironically I'm also lead singer in a rock band. RIP mitch
I followed all your instructions but when I update it always adds another entry in the database
Sure Shot tutorial 🙏
How do you connect a database to all this so that all these changes are reflected in it?
You can register an entity framework database context :-)
We have created a video on that here:
ua-cam.com/video/gQ2yBG3-jKI/v-deo.html
Enjoy
@@tutorialsEU thanks 😊
Damm legend
Do you have similar tutorial on storing data in SQL Server without using entity framework or may be using APIs or Store procedures?
i like your style
49:23
25:35
Hello,
Thanks for video, how to resolve this mistake?
System.NullReferenceException: 'Object reference not set to an instance of an object.'
Microsoft.AspNetCore.Mvc.Razor.RazorPage.Model.get returned null.
in :
foreach(var expense in Model)
Got same error, how to fix it?
Great
👉 *promosm*
Thanks a lot the Tutorial was on point and simple I like it thanks it was very helpful!
30:36