How add data to Entity Data Model via code?

B

Bobby Edward

I am using VB.NET and trying to create a BLL class to insert data into my
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,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top