I have a model on EF.
I want to register a "Record" with some single data. Also I need to select some customers for the Record. (customers exists previously on DB)
Partial Public Class expedientes .... Public Overridable Property customersrecord As ICollection(Of expedientesabogado) = New HashSet(Of customersrecord) Something similar to:
Protected Sub SaveBT_Click(sender As Object, e As EventArgs) Handles SaveBT.Click Dim idCustomer as integer= idCustomerTB.text Dim r as new record r.title=titleTb.text Dim customerRecord As New customerRecord customerRecord.customer = New customerLogic().GetCustomer(idCustomer) customerRecord.idCustomer = idCliente r.customersRecord.Add(customerRecord) Dim rLogic as new recordLogic Dim result As Integer = rLogic.CreateRecord(r) End Sub Public Class recordLogic Private eDespachoContextValue As edespa ...

Go to the complete details ...