How to use the InMemory provider in Entity Framework Core to test your methods without hitting the database or using fakes and mocks The InMemory database provider is an exciting feature in newer ...
For example, the default option is to create a database initializer class that inherits from CreateDatabaseIfNotExists. With this option the first line of code that accesses the database triggers the ...
Sometimes you want child objects retrieved with the parent object, and sometimes you don't. What you NEVER want is to retrieve child objects accidentally. Here's Peter's advice on how to get the best ...