In asp.net core, now you can inject your services directly in the view (cshtml) file. You can inject inbuilt services like logger, configuration, and custom services like repository in the view file directly.
Join this channel to get access to perks:
https://www.youtube.com/channel/UC2Us1KkV7BMm5Rp6tV6tTxg/join
GitHub Repo: https://github.com/webgentle/aspnet-core-mvc
Subscribe WebGentle: https://goo.gl/PJr1pN
Visit Our Website: https://webgentle.com
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
For business inquiry contact: [email protected]
Follow us on
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Facebook - https://bit.ly/36yZuQN
Linkedin - https://bit.ly/2N6Onqk
Twitter - https://bit.ly/2uv04AP
Popular free courses from WebGentle
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Jira tutorial – http://bit.ly/jiratutorial
Asp.Net Core Tutorial: http://bit.ly/aspnetcorebynitish
Azure DevOps tutorial - http://bit.ly/azuredevopsbynitish
.NET Core 3.0 fundamentals - http://bit.ly/dotnetcore3
MVC5 tutorial - http://bit.ly/mvcbynitish
LINQ Tutorial - http://bit.ly/linqbynitish
Non generic collection in c# - http://bit.ly/nongenericcollectionbynitish
Download
0 formats
No download links available.
(#80) Dependency injection in view (cshtml) file | @Inject | Asp.Net Core tutorial | NatokHD