Results 1 to 4 of 4

Thread: Differances in connection types

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2009
    Location
    Oklahoma, USA
    Posts
    92

    Differances in connection types

    I am new to VB.net. I have recently taken a class on VB.Net forms. In this course they discussed three different binding methods, Binding to a Dataset, LINQ, Datasource. Other than code I am not sure what the difference between them. Why would one de better than any other. Or are there instances where one is better than another.

  2. #2
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,969

    Re: Differances in connection types

    As Trump would say that is a "YUGE" topic. One being better than another is partly perspective. Here is a good link to start learning.

    https://www.codeproject.com/Articles...-windows-forms
    Please remember next time...elections matter!

  3. #3
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,508

    Re: Differances in connection types

    As Trump would say that is a "YUGE" topic.
    lmao,

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Differances in connection types

    Are you talking about a Web Forms application, because a data source in that context is a specific type of control, whereas in another context it simply means a list of data that is the source for a UI element? If you're not talking about that then they aren't three different types of binding; they're all the same. In Windows Forms, you bind a control to a list of some sort. How you create that list is irrelevant to the binding. All that matters is that it implements the IList or IListSource interface. In that scenario, a DataSet IS a data source, as is a list of objects produced by a LINQ query.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width