C
C#3mo ago
culture

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.
No description
18 Replies
Jimmacle
Jimmacle3mo ago
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
culture
cultureOP3mo ago
No description
culture
cultureOP3mo ago
can send fullstack trace as well
culture
cultureOP3mo ago
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.
Jimmacle
Jimmacle3mo ago
can you share the models/configuration for offer and shipper? preferably using $paste, easier than pastebin
MODiX
MODiX3mo ago
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!
culture
cultureOP3mo ago
Sure, do you need the aggregate roots only or entities as well?
Jimmacle
Jimmacle3mo ago
just the entities, i don't see anything else involved in this code (and the less i have to see of DDD the better)
culture
cultureOP3mo ago
This is the invoicing model. https://paste.mod.gg/fomjwyunrjff/4
BlazeBin - fomjwyunrjff
A tool for sharing your source code with the world!
culture
cultureOP3mo ago
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!
culture
cultureOP3mo ago
Do you want to see my dbcontext?
Jimmacle
Jimmacle3mo ago
wherever your model configuration is (unless it's all by convention)
culture
cultureOP3mo ago
Here is my model configuration. https://paste.mod.gg/ubnboofqpjaz/0
BlazeBin - ubnboofqpjaz
A tool for sharing your source code with the world!
Jimmacle
Jimmacle3mo ago
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
culture
cultureOP3mo ago
https://paste.mod.gg/vdgpedeqhdcz/0 It seems to be the same?
BlazeBin - vdgpedeqhdcz
A tool for sharing your source code with the world!
Jimmacle
Jimmacle3mo ago
i mean the actual values in the class
culture
cultureOP3mo ago
BlazeBin - ifuxproujxqo
A tool for sharing your source code with the world!
culture
cultureOP3mo ago
Tell me if you want to see the pipelines and events
Want results from more Discord servers?
Add your server