{"id":2298,"date":"2026-07-20T12:41:38","date_gmt":"2026-07-20T10:41:38","guid":{"rendered":"https:\/\/kindsonthegenius.com\/blog\/entity-framework-with-mvc-with-c-step-by-step\/"},"modified":"2026-07-20T12:41:38","modified_gmt":"2026-07-20T10:41:38","slug":"entity-framework-with-mvc-with-c-step-by-step","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/entity-framework-with-mvc-with-c-step-by-step\/","title":{"rendered":"Entity Framework with MVC with C# \u2013 Step by Step"},"content":{"rendered":"<p>In his step by step tutorial, we would use Entity Framework to create an MVC application. This application would maintain a list of item.<\/p>\n<p>We would be able select, insert, update and delete data in the database.<\/p>\n<p><strong>Step 1<\/strong> &#8211; Create your database using MS SQL Server. Also create a table.<\/p>\n<p><strong>Step 2<\/strong> &#8211; Create a new Solution using Visual Studio and select the following:<\/p>\n<ul>\n<li>ASP.Net Core Web Application<\/li>\n<li>Web Application (Model-View-Controller)<\/li>\n<\/ul>\n<p>Once the application starts up, we&#8217;ll have to add Entity Framework to our solution<\/p>\n<p><strong>Step 3<\/strong> &#8211; Right-click on the solution and choose Manage Nugget Packages. Then in the windows that appears, search for Entity Framework and select <em>Microsoft.EntityFrameworkCore.<\/em> Install it to the solution.<\/p>\n<p>Now we need to add Entity Data Model to our solution. This would be used to create a connection to the database and do Object Relational Mapping(ORM)<\/p>\n<p>Step 4 &#8211; Right-click on your solution and Choose Add New.\u00a0 Select Data and then<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In his step by step tutorial, we would use Entity Framework to create an MVC application. This application would maintain a list of item. We &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[414],"tags":[],"class_list":["post-2298","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/2298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=2298"}],"version-history":[{"count":0,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/2298\/revisions"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=2298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=2298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=2298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}