LINQ to SQL Videos from the Community

Published 20 August 07 01:43 PM

Bill Burrows has done it again and created a series of videos to help get you started with LINQ to SQL in Visual Basic! Bill is a great teacher and the style of these videos is off-the-cuff so that you really feel like you are in a classroom learning real technical content and you're not missing anything. It takes a special kind of person to do this kind of video because personality really shines through. Bill's got a great personality and I'm thankful for the time he's spent on these videos for the Visual Basic Community. I hope you get as much out of these lessons as I did!

Enjoy!

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Gary said on August 22, 2007 8:48 AM:

Hi Beth

I'm having trouble with these video. The screens do not render correctly (image is badly skewed). Getting audio ok. I'm using IE 7.0.5730.11  Same problem with the lastest version of Firefox.

Any ideas?

TIA

Gary

# Beth Massi said on August 22, 2007 11:56 AM:

Hi Gary,

I forwarded your comment over to Bill Burrows.

Cheers,

-B

# bill burrows said on August 23, 2007 9:03 AM:

Gary's problem appears to related to his OS (Windoes XP Home). We are working on a fix and I'll post it here when we get it figured out.

bill burrows

# bill burrows said on August 31, 2007 11:53 AM:

Regarding Gery's problem -- we were unable to resolve his issue viewing the videos with Windows XP Home edition. I have made Flash videos for him that work. If you have a similar problem. contact me from the myVBProf.com web site (Contact Us page).

bill burrows

# Gimmy said on September 19, 2007 3:08 PM:

Hi

Thanks for the videos. It beats reading books.

I was going about video #9 (Adding Validation) and I noticed that you use datatable events in the partial class.

Since you are using VB.NET it is fine, but I used C#.NET and I did not get the same datatable events you had (columnchanged, newrow) showing on the editor. In fact they are defined in the class but not activated and don't appear in the editor's drop downs.

I guess your focus is in VB but you may be able to answer my quesiton or direct it to  someone else who could help.

Thanks.

# Ron Nash -England said on January 26, 2008 5:02 PM:

Have just finished viewing Bill's on-line videos and coding my own test projects based on these videos. Just like to say  thanks to Bill, I found them excellent and easy to follow. Bill your students are right when they said to leave in the errors  and comments associated with them, it adds abit of humour and real life to it.

Many Thanks and look forward to many more of your learning videos.

Ron - England

# Ron Nash said on January 30, 2008 5:55 PM:

Have been using Bill's learning videos on LINQ to SQL, it seems that some of the methods have changed, for example, the ' add ' and 'removeall' to

' InsertOnSubmit ' and DeleteOnSubmit.

I have the following issue with bill's example to delete arecord but now using the DeleteOnSubmit method. The line db.replemishes.DeleteOnSubmit(aitem) errors :Option Strict On disallows implicit conversions from 'System.Linq.IQueryable(Of WindowsApplication1.replemish)' to 'WindowsApplication1.replemish'.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

       Dim aitem = From d In db.replemishes _

                   Where d.partno = "AAAAA" _

                   Select d

       db.replemishes.DeleteOnSubmit(aitem)

       db.SubmitChanges()

   End Sub

End Class

How do I resolve this please?

# burrowsuw said on January 31, 2008 9:32 AM:

To solve Ron's problem, you need to get a specific object from the enumeration of objects in the query. The example below converts the enumeration into a list of objects and then takes the first (and only in this case) object to be used in the delete method.

Code:

   Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click

       Dim customer = From c In db.Customers _

              Where c.CustomerID = "AAAAA" _

              Select c

       ' old code - does not work in RTM

       'db.Customers.RemoveAll(customer)

       Dim custList = customer.ToList

       db.Customers.DeleteOnSubmit(custList(0))

       db.SubmitChanges()

       Me.CustomerDataGridView.DataSource = db.Customers

   End Sub

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

About Beth Massi

Beth is a Program Manager on the Visual Studio Community Team at Microsoft and is responsible for producing and managing content for business application developers, driving community features and team participation onto MSDN Developer Centers (http://msdn.com), and helping make Visual Studio one of the best developer tools in the world. She also produces regular content on her blog (http://blogs.msdn.com/bethmassi), Channel 9, and a variety of other developer sites and magazines. As a community champion and a long-time member of the Microsoft developer community she also helps with the San Francisco East Bay .NET user group and is a frequent speaker at various software development events. Before Microsoft, she was a Senior Architect at a health care software product company and a Microsoft Solutions Architect MVP. Over the last decade she has worked on distributed applications and frameworks, web and Windows-based applications using Microsoft development tools in a variety of businesses. She loves teaching, hiking, mountain biking, and driving really fast.

This Blog

Syndication

Page view tracker