BabellDev

Results comments of BabellDev

Hi @cpacker just checking in to confirm will indeed be looking at this. Was quite busy over the weekend, but will be actively working on it over the next few...

I am having the same issue as @voroninp on 3.1.13. It seems if I add an entity to my DbContext, that context will never be cleaned up, which sounds a...

Hi @yoganr, I'm curious what version of efcore you are running? We recently upgraded our project to efcore 6 and I haven't had a chance to profile it again. I...

> We had this issue with ef core 3.1 and then we hoped upgrading to 7.0 will fix it but seems like same problems, what I sent you was using...

Thank you for the response @ajcvickers Apologies, my examples were likely too trivial to capture the true scope of the issue we are experiencing. Our production code projects to a...

To work around this problem in our app, we added a 2-way navigation property and manually disassociated the optional entity before removing it from the context. For example: ``` //...

@ajcvickers here is OnModelCreating from my example: ``` protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity().HasKey(x => new { x.Id, x.EmployeeId }); } ``` Worth mentioning: I tried explicitly changing cascade...

@ajcvickers here is the sample project, thanks. [EFCore.SeveredKeyExample.zip](https://github.com/dotnet/efcore/files/4853923/EFCore.SeveredKeyExample.zip)

> Thank you for posting this workaround. It's kind of strange that Azure can just have random endpoints go down with no fixes from Microsoft for extended periods of time....

What about the following scenario? ``` using(var txn = new dbContext.Database.BeginTransaction()) { // Read and modify an entity var entity = dbContext.SomeEntities.First(); entity.Name = "FOO"; // Save the change, cache...