Closed vicheanath closed 1 week ago
You'll have to submit an minimal, runnable code repro - the above is a partial snippet that doesn't allow me to reproduce the problem. See below for an example code sample which maps your UserId property just fine.
Thank for your reply actually that is my fail , i don't specify enough property filed, can close this issue
ef core migration add Error with using Strongy Type record as Identity
Problem
I have a problem with ef core migration strongly type id I have use conversion for convert it back to Guid on database mapper but it still treat
UserId
as an Entity and requires me to give key to it .User.cs
UserConfigMapper.cs
Include verbose output
Please include
--verbose
output when filing bugs about thedotnet ef
or Package Manager Console tools.Use triple-tick fences for tool output. For example:
Include provider and version information
EF Core version: 8.0.10 Database provider: (e.g. Microsoft.EntityFrameworkCore.PostgreSQL) Target framework: .NET 8.0 Operating system: MAC IDE: VS Code