Closed PlaySkyHD closed 2 months ago
@PlaySkyHD this question doesn't really seem related to EF, but rather to Cosmos and/or its emulator. Note that the emulator is known to have various stability issues, does the same thing work when executing against a real Cosmos instance?
Yes, the same code works with a normal ComosDB hosted in the Azure Cloud.
In that case this really seems to be a question that should be directed to the Cosmos Emulator maintainers, not to EF. I'm going to go ahead and close this, but if you suspect EF is doing something wrong here, post more info and I'll reopen as needed.
When my container(Gateway-Service) starts and wants to create the database, the service stops at EnsureCreated and gives the following error after some time. The strange thing is that it creates some containers, but not all, as you can see in the screenshot. The Services runs in a Docker-Compose Enviorment. For example, ‘Identity_UserRoles’ is missing.
ASP.NET - Program.cs
ASP.NET - ApplicationDbContext.cs
Docker-Compose
Stack traces
CS-Project
Include provider and version information
EF Core version: Database provider: (e.g. Microsoft.EntityFrameworkCore.CosmosDb) Target framework: (e.g. .NET 8.0) Operating system: Linux