How add data to Entity Data Model via code?

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

    How add data to Entity Data Model via code?

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

    Thanks!



Working...