Blazor Server Database First Approach Entity Framework Core Tutorial
HTML-код
- Опубликовано: 16 апр 2021
- Asp.Net Blazor Server Database First Approach using Entity Framework core
Packages to add
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.SqlServer
Microsoft.EntityFrameworkCore.Tools
Scaffold-DbContext "Server=DbServerName;Database=DemoDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -force
I was precisely searching for this standard of Tutorial from 6 to 8 months. This is the best one which matches my requirement. I come from DB background. This tutorial really helps. There is no tutorial on RUclips which has Blazor+Web API +Business Layer+ EF DB first Approach. Most of them are Code First approach. Really Thanks.
Glad it helped!
Which is like 99% of the time the case for a business. I am not sure why code first is the focus when it’s not realistic. Completely backwards in my experience.
I agree very much with Younus. This video is a real help.
Perfect Design & descirption
Thanks for the feedback ...also checkout the shopping cart project developed using the same approach
ruclips.net/p/PLWpvttYT5mY4Z_GJJULctGOFO-His_w1S
thank you , this is so good. part two please crude operation, part 3 please authentication with token.
Sure i will create a video for authentication with token
Can we have just download the project... I love this
Hi, thank you for this resource. What is the reason for unchecking "Configure for Https"?
well done. thanks
Thanks for watching!
Very good tutorial
Thanks for watching subscribe for more such videos
Hi,
Is it necessary to create a API?
can I create the 3 projects as you created and is there a way to get access to models using the UI project?
it is recommended to create different layers and good code maintaince and for better scalablity in future if the project grows and becomes large ERP .. you can add a reference to UI project of Models Project
Hi I have probleem when I publish application cannot Connect Sql server but when I run in VS2022 it works fine , van you help me please
Where are you publishing the source code on azure ? Did you change the connection string to point to your server instead of local SQL instance ?
@@CodingJackpot My problem is in the mean time solved, probably a bug, but I had other question, I don't see the file startup any more, how can I make auto migrations ?
Sir if i have more than one getfunction in api then how it will work.
As per the project requirement any number of functions can be called .. not only get functions .. post delete ... all can be used .. you can refer our complete shopping cart project developed using the same approach ...
ruclips.net/video/JBXv3Vq4sLE/видео.html
Dont forget to subscribe for upcoming videos ..
Thanks
I run this
Scaffold-DbContext "Server=DESKTOP-71FLHB7\SQLEXPRESS01;Database=DemoDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -force
then got this
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted
Hi @Coding Jackpot, This is a very favorable video. By the way
when I am fetching data then
getting null value below line on DataView.razor page
Data = await _frontEndService.GetProductDetails();
Any Advice plz.
Try to put break point in the api method GetProductDetails and see whether data is getting returned or not