EDM question - How insert record thru code?

B

Bobby Edward

I am using VB.NET and trying to create a BLL class to insert data into
database, using the generated entity data model. Can anyone provide me with
an example?

The old way, using the XSD dataset, was done this way....
Public Sub InsertFaq(ByVal FaqQuestion As String, ByVal FaqAnswer As
String, ByVal FaqUrl As String, ByVal FaqCategoryId As Integer)
Using db As New DsFaqTableAdapters.faqsTableAdapter
db.Insert(FaqQuestion, FaqAnswer, FaqUrl, FaqCategoryId)
End Using
End Sub

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top