Closed hexianggui closed 1 month ago
The AbpDbContext<ToJsonTestDbContext>
configures the model and later your call fails because you're doing "incompatible" mapping. This does not look like a bug in EF.
If you want to discuss further, please attach a small (without external dependencies), runnable project that reproduces what you are seeing so that we can investigate.
@cincuranet thank you!You are right.This is ABP's problem
Cannot contain DateTime type in the JSON object?Or is this a bug?
entitys:
ModelBuilder
Sample project
stack traces
Executing the migration command
dotnet run --migrate-database
results in the error:version information
EF Core version: Database provider: Microsoft.EntityFrameworkCore.SqlServer Target framework: .NET 8.0 Operating system:Win10 IDE:Visual Studio 2022 17.10