Efcore - Database issues (Sqlite)
Hey I am getting this error code when I am attempting to do a method in my application.
(Domain Driven Design) - MediatR - Domain Events.
I can send code snippets if it could help with debugging.
18 Replies
there's not much information there, but you tried to set an invalid relationship between one entity and another
code and the full stack trace would help
can send fullstack trace as well
Pastebin
An unhandled exception occurred while processing the request.Sqlite...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
can you share the models/configuration for offer and shipper?
preferably using $paste, easier than pastebin
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
Sure, do you need the aggregate roots only or entities as well?
just the entities, i don't see anything else involved in this code
(and the less i have to see of DDD the better)
This is the invoicing model. https://paste.mod.gg/fomjwyunrjff/4
BlazeBin - fomjwyunrjff
A tool for sharing your source code with the world!
Here is the fulfillment context as well(contains shipper)
https://paste.mod.gg/finieaykjfqo/2
BlazeBin - finieaykjfqo
A tool for sharing your source code with the world!
Do you want to see my dbcontext?
wherever your model configuration is (unless it's all by convention)
Here is my model configuration.
https://paste.mod.gg/ubnboofqpjaz/0
BlazeBin - ubnboofqpjaz
A tool for sharing your source code with the world!
can you check the Offer model that you get from the database and see if it matches what's actually in the database?
EF can't set navigation properties through constructors so i'm not sure if the presence of that is confusing it or not
https://paste.mod.gg/vdgpedeqhdcz/0 It seems to be the same?
BlazeBin - vdgpedeqhdcz
A tool for sharing your source code with the world!
i mean the actual values in the class
BlazeBin - ifuxproujxqo
A tool for sharing your source code with the world!
Tell me if you want to see the pipelines and events