0
It turns out that the create function that the other intern did doesn’t work because it has two tables with relation of n-n and in the function it just goes to fetch data and records them in one. I just can’t find a way to add another table or use the relational table.
This is the code of the create function he left
' GET: DEF_DEFECT/Create
Function Create() As ActionResult
Return View()
End Function
' POST: DEF_DEFECT/Create
'To protect from overposting attacks, please enable the specific properties you want to bind to, for
'more details see http://go.microsoft.com/fwlink/?LinkId=317598.
<HttpPost()>
<ValidateAntiForgeryToken()>
Function create(<Bind(Include:="CODE_DEF,DESCRIPTION_DEF")> ByVal dEF_DEFECT As DEF_DEFECT) As ActionResult
If ModelState.IsValid Then
db.DEF_DEFECT.Add(dEF_DEFECT)
db.SaveChanges()
Return RedirectToAction("Index")
End If
Return View(dEF_DEFECT)
End Function
He sent for the code_def
and description_def
on the table def_defect
but I need you to go get the cod_process
table Pro_Process
.
These 2 tables, when normalized, gave rise to the table Process_Defect
Can someone give me a hand?