Entity Framework Core In-Memory Database

preview_player
Показать описание
Coding Tutorial: Writing a mock repository for unit testing can require a large amount of coding that simply duplicates the features of a real database. Nowadays, the Entity Framework Core In-Memory database does the work for you.

Рекомендации по теме
Комментарии
Автор

Great video! I haven't seen any tutor here in youtube using in-memory DB to mock the application's dbContext. They usually use Moq for that purpose. Could we say that they practically do the same thing in the case of unit-testing?

sajadzargar.dev
Автор

Can you use an inmemory database in an actual app to store states (like storing a chess game state) or is that not viable

RayanMADAO
Автор

I am not getting the identity column property value, after saveChanges() is called while unit testing. is it because it's not a primary key? or what can be the possible reason.

ankitjain
Автор

Very interesting. I wonder thought how the structure of Model is created in the in-memory database. It does not look like we need to run any migrations. Is it just inferred from DBContext class and Entity classes?

piotrjan
Автор

Very interesting...
?how is implemented internally the "in-memory database"? with ADO.net??

can you please remake this video without ASP.net... just output to console...
building the same code with .net 5.x... and explaining it step by step...

IBITZEE