C#
  Home arrow C# arrow Page 4 - LINQ-to-MySQL with DbLinq in C#
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C#

LINQ-to-MySQL with DbLinq in C#
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 10
    2009-03-12

    Table of Contents:
  • LINQ-to-MySQL with DbLinq in C#
  • Preliminary Tasks
  • Let's Do It!
  • Final Thoughts

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    LINQ-to-MySQL with DbLinq in C# - Final Thoughts


    (Page 4 of 4 )

    As you can see, we have arrived at the end of this article. By now you should have completed your first .NET application in C# based on the DbLinq provider. Keep in mind that the example presented in this article heavily depends on the tables contained within the database (their fields, types, etc.).

    This means that you should pay extra attention when implementing everything in correlation with your database and your specific needs. This is possible only if you understand the basic concepts of LINQ, have the necessary experience with RDBMS, and, of course, are familiar with working with Visual C#. You can always refer back to the official Microsoft LINQ documentation should the need arise.

    Moving on, here's one final screen shot of the application up and running after the "List Clients" queries has been executed. In a nutshell, the entire process isn't a black art. The DbLinq provider does a really good job as long as the queries remain simple, as they did in this article. Once they become complex and have sub-queries, things change...

    Another thing worth mentioning is that at the time of writing, DbLinq has a huge limitation, and that's not being able to handle more than one foreign key. Surely, foreign keys aren't necessary theoretically-you can read about this here, here, and here-but that's an ugly workaround with which we don't really like to deal. The project requires further development, and this will fortunately change in the near future.

    Meanwhile, you are free to explore other LINQ-to-other database providers. Every so often check the status of currently available providers and hope for the best. You should also refer back to the previous article in this series-the one that covered other providers along with DbLinq such as the LightSpeed(by Mindscape) and NHibernate.

    And finally, we can't really finish without inviting you to join our helpful forums at DevHardware Forums. We've a strong base of resident professionals, enthusiasts, and tech experts. If you want to hear opinions on some service or ask for some clarification regarding some details, just shoot us your questions. We'll do our best to help. And you may also want to pay a visit to the forums of our sister-site: DevShed Forums.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · Hi, Its very nice article on Linq to sql but i m having some problem when i m...
     

    C# ARTICLES

    - Coding a CRC-Generating Algorithm in C
    - Cyclic Redundancy Check
    - Handling Methods and Functions
    - Destroying Objects in C#
    - Creating Objects in C-Sharp
    - Classes and Objects
    - Programming Languages: Managed versus Native
    - LINQ-to-MySQL with DbLinq in C#
    - Working with Dates and Times in C#
    - Generics, Dictionaries, and More
    - More About Generics
    - Working with C# Collections
    - Generics
    - C# and XML
    - Pointers and Arrays in C#





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek