In EF Core, OnModelCreating scaffolds the entire database, but I don't see a way via the model builder to define a TTL; It seems like I would have to delete the container that gets created by EF Core.
Does anybody know of a better solution?
In EF Core, OnModelCreating scaffolds the entire database, but I don't see a way via the model builder to define a TTL; It seems like I would have to delete the container that gets created by EF Core.
Does anybody know of a better solution?
Eoleary. Although there is full support for Entity Framework Core and Cosmos DB including the EF Core Azure Cosmos DB Provider with almost full support for the CosmosClientOptions Class. The TTL component will not be available until v. 6.0 dotnet\efcore nugget package at the earliest. You can track this through the following dotnet\efcore Git Issue: Cosmos: Configure TTL per entity/entity type/collection
Version 3.1.9 is GA and version 5 release candidate is here. Additional information can be found on the dotnet/efcore project repository.