You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An empty form, which should at least contain a Guid and a FormName.
But according to the github issue linked in the SO post (dotnet/EntityFramework.Docs#2895), should this issue have been resolved in version 5?
so why am I having it in version 6?
Include provider and version information
EF Core version:
Database provider: Microsoft.EntityFrameworkCore.Cosmos (6.0.6) and Microsoft.EntityFrameworkCore (6.0.6)
Target framework: .NET 6.0
Operating system:
IDE: Visual Studio 2022
The text was updated successfully, but these errors were encountered:
Only collections of primitive types are supported by EF Core 6, So Form needs to be typed as Dictionary<string,string>
Dictionary<string,object> is recognized as a nested entity type, you could use it, but you'd need to explicitly configure all the keys that it can contain:
Hi @AndriySvyryd ! I have a question. Eveytime I try to map a list of complex type, the same problem mentioned above occurs. But, I tried to add a collection of complex types without mapping it using entity and everything worked! Entity knew how to create the document and retrieve it without the mapping.
Well, since entity knows how to do it (or at least it seemed to me that it knows), is there any way to map the collection of complex type itself without having to use a dictionary?
I've been having some issues with storing my dictionary into cosmos db via Ef core.
My situation is similar to this SO post : https://stackoverflow.com/questions/64982780/dictionary-property-in-cosmos-db-using-ef
Include your code
I have a datacontract as such
and store it into the database as such
what I seen in CosmosDb is this though:
An empty
form
, which should at least contain aGuid
and aFormName
.But according to the github issue linked in the SO post (dotnet/EntityFramework.Docs#2895), should this issue have been resolved in version 5?
so why am I having it in version 6?
Include provider and version information
EF Core version:
Database provider: Microsoft.EntityFrameworkCore.Cosmos (6.0.6) and Microsoft.EntityFrameworkCore (6.0.6)
Target framework: .NET 6.0
Operating system:
IDE: Visual Studio 2022
The text was updated successfully, but these errors were encountered: