C
C#2w 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
Jimmacle2w 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
culture2w ago
No description
culture
culture2w ago
can send fullstack trace as well
culture
culture2w 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
Jimmacle2w ago
can you share the models/configuration for offer and shipper? preferably using $paste, easier than pastebin
MODiX
MODiX2w 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
culture2w ago
Sure, do you need the aggregate roots only or entities as well?
Jimmacle
Jimmacle2w 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
culture2w 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
culture2w 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
culture2w ago
Do you want to see my dbcontext?
Jimmacle
Jimmacle2w ago
wherever your model configuration is (unless it's all by convention)
culture
culture2w 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
Jimmacle2w 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
culture2w 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
Jimmacle2w ago
i mean the actual values in the class
culture
culture2w ago
BlazeBin - ifuxproujxqo
A tool for sharing your source code with the world!
culture
culture2w ago
Tell me if you want to see the pipelines and events
Want results from more Discord servers?
Add your server