EDM question - How insert record thru code?

Discussion in 'ASP .Net' started by Bobby Edward, Sep 24, 2008.

  1. Bobby Edward

    Bobby Edward Guest

    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!
    Bobby Edward, Sep 24, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. markla
    Replies:
    10
    Views:
    835
    Razvan Sovrea
    Jun 14, 2010
  2. Justin Dutoit

    Using the EDM designer

    Justin Dutoit, Feb 16, 2009, in forum: ASP .Net
    Replies:
    0
    Views:
    357
    Justin Dutoit
    Feb 16, 2009
  3. THTB
    Replies:
    0
    Views:
    182
  4. Max Williams
    Replies:
    3
    Views:
    167
    Robert Klemme
    Jan 6, 2009
  5. Oliver S?der

    Novadigm Radia *.edm files

    Oliver S?der, Sep 27, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    284
    Oliver S?der
    Sep 27, 2004
Loading...

Share This Page