Jon P Smith

Results 108 comments of Jon P Smith

The `dbContext.Database.EnsureClean()` method uses the SQL `DROP` command, which won't work on a temporal tables. You should use: ```c# dbContext.Database.EnsureDeleted(); dbContext.Database.EnsureCreated(); ``` This deleted the current database and then creates...

Hi @kakins, I _think_ your problem is because the connection is closes by EFCore.TestSupport. That's because the`SqliteInMemory` static methods creates an disposable version of the `DbContextOptions` options. When the context...

Sorry, but Its hard to diagnose your problem from what you say. I suggest you try creating the DbContext (without turning off the dispose) in each test and see whether...

Hi @MeltedFreddo, I don't use the `EfCoreLogDecoder` since the EF Core 5 brought out the `ToQueryString` method because the `EfCoreLogDecoder` code isn't perfect. But I see why you are using...

Hi @limjordan74, The repo was build for NET Core 2.0, but I have updated some of the branches to NetCore3, e.g. `Chapter05-NetCore3` (have a look at the branches). Later branches...

Hi @gkfischer, Good catch! I got it right in the ListBasketPartial.cshtml but missed those. I'm busy at the moment but I'll keep this issue open to remind me.

Hi @EngMohammadAbdullah, I'm not sure what your problem is, but its something to do with the `Review` you were trying to update isn't in the database. This happens if EF...

Hi @EngMohammadAbdullah, I'm still not sure what is going on as there are lots of classes involved. The bit that looks a little odd is you are creating a new...

Hi @algorythm, Thanks for that. I don't think I can submit this merge as it would break the "branch-per-chapter" setup. It looks like this is used first in chapter 2,...

Hi @BartNetJS, I can see what you are trying to do with the schema - I had to make the same change to the [EfSchemaCompare equivalent for EF Core](https://github.com/JonPSmith/EfCore.TestSupport/wiki/9.-EfSchemaCompare). What...