EDM question - How insert record thru code?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bobby Edward

    EDM question - How insert record thru code?

    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 DsFaqTableAdapt ers.faqsTableAd apter
    db.Insert(FaqQu estion, FaqAnswer, FaqUrl, FaqCategoryId)
    End Using
    End Sub

    Thanks!


Working...