
/a/ - adventures
>crazy relational schema for custom form builder feature
2024-07-18 10:27:58
No.112
>crazy relational schema for custom form builder feature
>add a multi-select field type
>have to update 15 files to account for it
>run the app and create a new form
>forgot to create a table for the new model
>efcore is creating fields out its ass again
>thisisfine.jpg
>manually map the relation in dbcontext
>it expects a separate table for implicit many-to-many relation
>write absolutely deranged sql query to create the table
>form saves, waku waku :3
>fill out form, everything breaks again
>realize i forgot to fetch the new table along with formresponse
>try to fetch
>efcore says im doing it wrong
>fine ill do it your way
>everything works, saves response to db
>doesn't properly display the field
>cba to deal with it, it's nappies time
i fucking hate c# but heyyy im getting paid :despair:
2024-07-18 11:39:05
No.206
FK_InspectionFieldMultipleSelectChoiceInspectionReportFieldMultipleSelect_InspectionFieldMultipleSelectChoice_Id.jpg
New Reply