LINQ 101 Examples with Telerik OpenAccess ORM

by OpenAccess ORM Team | Comments 14

We all know that today LINQ is the most popular and easy way for processing data in the .NET community. In fact you can use almost all data sources you might think of: plain objects, XML or relational databases.

While we have been offering an extensive LINQ support for months now, and we are continuously improving it, I don’t think it received the credit it deserves. So we decided to foster the awareness of our community towards the great LINQ support we provide with the Telerik OpenAccess ORM tool.

Ok, easier said than done. What approach should we take with this one? A demo is worth a thousand slides, so we decided to provide you with a sample application that demonstrates what level of LINQ support our product has achieved in the past few months:

 

image

We created a desktop Windows Forms application - not “dramatic” by any means - but it resembles closely the LINQ samples that are publically available from Microsoft®. And it clearly demonstrates lots of the LINQ features that Telerik OpenAccess ORM supports.

Let me say few words how the UI of the application is organized:

1.    On the left-hand side of the form you will find a treeview that allows selection of the desired examples. This approach is widely used in our demo applications so no surprise there. When one selects a sample query to look at, some details appear on the right side of the form.
2.    Description of what actually the example demonstrates.

3.    In the code viewer window you can see the C# code for the executed query (we are still developing the Vb.net version of the sample application).

4.    In the Output window you can actually see the SQL that we generate for the LINQ query used! Since there are many opinions on how the optimized SQL form should look like, please let me know what you think about the SQL query we generate. All feedback is appreciated!

5.    Query Results – in the nice grid view provided by our colleagues from the Telerik WinForms team we render the actual data that comes as a result from the query. Cheers!

6.    Last but not least is the “Execute” button that, when pressed, makes the whole thing spinning.

I hope you will have nice time playing with Telerik OpenAccess ORM and our LINQ support. Next time I will try to share with you how to use LinqPad with Telerik OpenAccess ORM.
And Yes, the UI is done using our fine Telerik WinForms controls, not WPF (being a bit nostalgic here).

The application is available for immediate download here. To use it you must have Telerik OpenAccess ORM installed.

Damyan Bogoev
Senior Software Developer,
OpenAccess ORM Team

14 Comments

Anonymous
Unfortunately the download link is broken.
Damyan
Hi,
the link is already fixed. Thank you for pointing that to us.

All the best,
Damyan
Steve
Appears to be broken again
Steve
Appears to be broken again
Alexander
Hi Steve,

The link is working on our side, maybe your browser has cached the page with the old link. However, here it is -> http://www.telerik.com/community/code-library/orm/general/telerik-openaccess-orm-101-linq-samples.aspx

Regards,
Alexander
Andy
The link to the desktop Windows forms application is broken as of 6/10/211.
proge
link still broken sir
Telerik Admin
Hi,
 
The link is now fixed. Please accept our apologies for the inconvenience.
Note that the demo application is now a part of the OpenAccess SDK which can be downloaded for free, separately from OpenAccess ORM. You can found plenty of other useful examples there as well.
 
Best Regards, 
Ivailo
The Telerik Team
George
Both links (at the top and at the bottom of the post) are still broken as of 5/27/2012.
Telerik Admin
We have fixed again the broken links. Sorry for the inconsistent behavior of this blog.
In case of future problems, you can use the following URLs:
OpenAccess SDK (recommended): http://www.telerik.com/products/orm/features/sdk.aspx
Code Library sample (deprecated): http://www.telerik.com/community/code-library/orm/general/telerik-openaccess-orm-101-linq-samples.aspx
Steve
Execute button [Run Sample] not displayed in form
Telerik Admin
Steve,
We are unable to reproduce this issue.
If you continue experiencing this behaviour please open a support or forum thread with reproduction steps and information which version of OpenAccess/OpenAccess SDK is affected and we will investigate the issue further.
Best Regards,
Viktor
The Telerik Team
Steve
RE: Execute button [Run Sample] not displayed in form
Although I (thought) I had rebuilt the solution, it may be that I did not. I opened the cs form and to see the button for myself, built it again and it ran fine. Maybe I missed and hit 'Clean Solution'.
It is a very nice presentation of LINQ samples, by the way.
Steve
RE: Execute button [Run Sample] not displayed in form
Although I (thought) I had rebuilt the solution, it may be that I did not. I opened the cs form and to see the button for myself, built it again and it ran fine. Maybe I missed and hit 'Clean Solution'.
It is a very nice presentation of LINQ samples, by the way.

Comments

  1.    
      
      
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)
Read more articles by OpenAccess ORM Team - or - read latest articles in Developer Tools