Seed Identity Data in ASP.Net Core
When using Identity in ASP.Net Core, it can be useful to seed some data for testing purposes. How to go about that is not entirely obvious, given that the tables [...]
When using Identity in ASP.Net Core, it can be useful to seed some data for testing purposes. How to go about that is not entirely obvious, given that the tables [...]
The name of an enum in c# can't contain any special characters or spaces. For example, the third value in this enum won't work: public enum Soda : int { [...]
https://haacked.com/archive/2011/01/06/razor-syntax-quick-reference.aspx/
Because .NET Standard is implemented by later versions of the .NET Framework and .NET Core, these two very different project types can actually play nicely together. (I think of .NET [...]
I think I've come up with a reasonable form of an UPSERT that strikes a balance between performance and ease of coding. For now, this post is just an outline; [...]
When you load an entity from the database and update some properties, Entity Framework compares the new values against the old values and immediately decides if there was an actual [...]
I like working with enums, but I found I haven't used them much lately because I was fuzzy on how to use them in conjunction with Entity Framework. I've finally [...]
One to Many Relationships This article does not yet include information about One-To-Many relationships. However, One-To-Many relationships have not changed since Entity Framework 6, so check out this guide for [...]
Migrations in Entity Framework Core have become very powerful and easy to use. This is by no means a complete guide! Rather, this acts as a Quick Reference Guide for [...]
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 [...]