Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...To LINQ or not to LINQ, that is the questionTo LINQ or not to LINQ, that is the question
Previous
 
Next
New Post
5/22/2008 3:08 PM
 

LINQ is definitely worth the effort, and I am continuing with it now after couple weeks into it.

However, there are some gotchas, drawbacks, and bugs. Not all theoretical design recommendations for use of various controls and approaches are supported by working demos and examples.

So if you do not want to waste time running into gotchas and bugs, just make sure you follow the design patterns of published demos and examples already available on the web. Otherwise, feel free to experiment with new combinations of controls and approaches!

CT


CT
 
New Post
5/22/2008 3:27 PM
 

Remember LINQ is actually nothing more than a Querying Language built into the .NET core languages.

Using LINQ to Objects (ie querying over any collection that implements IQueryable or IEnumerable) is trivial in the DNN environemnt - and will have no impact on any other dnn module.

I suspect from comments here that what people are really discussing is "LINQ to SQL" - which is a a combination of the LINQ language together with a data abstraction layer that exposes your Database elements as "IQueryable" objects.  Michael is very passionate about the use of LINQ to SQL and to a degree I support him in this feeling - you do have to be aware of its limitations though.

The major issue is that it is difficult to manage {objectQualifier}s so if you are expecting to distribute a module built with LINQ you will need to be aware of this.


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
5/22/2008 3:57 PM
 

Charles Nurse wrote

The major issue is that it is difficult to manage {objectQualifier}s so if you are expecting to distribute a module built with LINQ you will need to be aware of this.

Yes and as of now I do NOT have a solution for this.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/22/2008 4:48 PM
 

Charles,

You are absolutely right. Definitely you discuss one of the gotchas I've been dealing with.

By the way, in terms of LINQ to SQL, are there any plans to support it in DNN Cambrian with a SQLExceptionHandler to catch any SQL exceptions gracefully and display either friendly messages and/or developer messages without shutting down the DNN page load?

Providing a useful and helpful SQL exception handler well integrated into the database provider for DNN might facilitate better future integration and development of LINQ to SQL based modules for DotNetNuke.

CT


CT
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...To LINQ or not to LINQ, that is the questionTo LINQ or not to LINQ, that is the question


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out