0

How to display a data from database on a .cshtml page?

I am very new to .cshtml and MVCs. Can some explain me with a sample coding on how to display a data from DB on a .cshtml page. My sincere appreciation to anyone who helps. Good day!

22nd Apr 2018, 2:15 PM
Muthiah Abbhirami
Muthiah Abbhirami - avatar
1 Answer
0
Asp. Net mvc uses the Entity framework to communicate with the database. I'd start researching Entity - code first migration. In Visual Studio, you can start an mvc project with a database already integrated, just select authentication (user) when you start a new mvc project.
22nd Apr 2018, 2:48 PM
Bagshot
Bagshot - avatar