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. Advertisements

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:
    1,108
    Razvan Sovrea
    Jun 14, 2010
  2. Justin Dutoit

    Using the EDM designer

    Justin Dutoit, Feb 16, 2009, in forum: ASP .Net
    Replies:
    0
    Views:
    455
    Justin Dutoit
    Feb 16, 2009
  3. Frits van Soldt

    How to insert a new record in detailsview when there are no record

    Frits van Soldt, Nov 16, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    1,211
    Frits van Soldt
    Nov 17, 2005
  4. THTB
    Replies:
    0
    Views:
    364
  5. Guest
    Replies:
    1
    Views:
    420
    Alex G
    Jan 9, 2004
  6. Max Williams
    Replies:
    3
    Views:
    309
    Robert Klemme
    Jan 6, 2009
  7. Oliver S?der

    Novadigm Radia *.edm files

    Oliver S?der, Sep 27, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    498
    Oliver S?der
    Sep 27, 2004
  8. Sergio del Amo
    Replies:
    4
    Views:
    475
Loading...