Tagged articles
Image from Pexels

Tagged articles - DbContext

Found 2 articles tagged with DbContext

Mocking view mapped DbSets with XUnit in EF Core
Writing unit tests for view bounded entities in EF Core
 
0
Using in-memory DbContext is a great way to mock your actual DbContext in unit tests. You basically initialize the instance of your DbContext and seed some random data before you assert the result of your repository method. Now the problem occurs if you are mapping database view to an entity...read more
Logging EF Core actions to a file using Serilog
Log Entity Framework Core using Serilog in .NET Core application
0
Logging is an essential part of the application. It gives you insights which allows you to see your application behavior or even user behaviour and actions taken by them in the application.Serilog is most probably the most popular library for logging in .NET Core applications...read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more