OnModelCreating() method is a member of the
DbContext class, so if you’ve separated your context class from your (code-only) entity classes, that distinction remains pure.
Although you can use
DbModelBuilder independently, overriding
OnModelCreating() is the most common and recommended approach. When you create the override, Intellisense will add the base call for you.
DbModelBuilder exposes a couple of properties and methods ...