Entity Framework

Create ASP.Net Core 3.1 MVC Project With Entity Framework

This example demonstrates how to create & configure an ASP.Net Core 3.1 MVC project with Entity Framework. I've included instructions on adding the appropriate NuGet packages, setting up the connection [...]

2020-02-16T11:57:52-04:00February 13, 2020|

Serializing Objects in ASP.Net WebForms

This is a very incomplete post with some quick & dirty notes about serializing objects in ASP.Net WebForms. All included code is VB.Net. Default ASP.Net serialization Classes must have annotation [...]

2019-09-10T14:25:17-03:00September 10, 2019|

Add New Entity (or Copy Entity) with Entity Framework

To add a new entity to your model, simply add it using <context>.<models>.Add(newEntity) and then call <context>.SaveChanges(). If you want to copy an existing entity and insert the copied item [...]

2019-03-08T10:06:18-04:00March 8, 2019|

Relationships in Entity Framework 6

This demonstrates how to configure one-to-many and many-to-many relationships in a code-first Entity Framework ASP.Net MVC application. The sample application is a blog containing posts, post categories (one-to-many), and post [...]

2020-10-16T19:00:52-03:00February 22, 2019|
Go to Top