Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > EDM question - How insert record thru code?

Reply
Thread Tools

EDM question - How insert record thru code?

 
 
Bobby Edward
Guest
Posts: n/a
 
      09-24-2008
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!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
DynamicData pages and additional fields on an EDM model markla ASP .Net 10 06-14-2010 11:54 AM
Using the EDM designer Justin Dutoit ASP .Net 0 02-16-2009 11:44 AM
How to insert a new record in detailsview when there are no record Frits van Soldt ASP .Net Web Controls 2 11-17-2005 09:18 AM
Novadigm Radia *.edm files Oliver S?der Perl Misc 0 09-27-2004 11:46 AM



Advertisments