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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Output Params with DAL+ - is it possible?Output Params with DAL+ - is it possible?
Previous
 
Next
New Post
1/2/2009 8:42 AM
 

Rodney Joyce wrote
 

Ok, good to know, I'll use the DAL for Output params and the DAL+ where it makes sense, and keep an eye on Linq - from what I understand this is only available in .NET 3.5 so as a module vendor I would probably need to support the old DAL for a lot longer (I use EntitySpaces on my custom modules).

As a module vendor the only requirement is that your users have ASP.NET 3.5. I do not think this is a problem because anyone not running ASP.NET 3.5 is running a old version of ASP.NET that is automatically upgraded with their windows upgrades.

If your users are using DNN4 you can distribute LinqPrep If using DNN5 follow these directions . 



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
1/2/2009 12:32 PM
 

For a module vendor, hosted portals are an important market share and many of them don't have an easy option to upgrade to .Net 3.5 (that's a main reason, why DNN does not require ASP.Net 3.5 yet, though it would simplify our development efforts and improve our options in several aspects).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/4/2009 5:37 PM
 

FWIW - it's a bit hacky, but RecordsAffected still works, so this can be used instead (there are cases where this won't return an accurate count, for example if you are doing multiple inserts in your stored proc, but it works with 75% of cases and the DAL+

 

E.g:

 

        public static List<SmartThinker_StoryFeed_ActionInfo> GetByCreatedByUserID(int createdByUserID, int requiredPage, int recordsPerPage, ProfileStoryRetrievalType profileStoryRetrievalType, string storyActionTypeIDList, int portalID, out int totalRows)
        {
            totalRows = 0;
            IDataReader results = (IDataReader)DataProvider.Instance().ExecuteReader("SmartThinker_StoryFeed_ActionGetByCreatedByUserID_C", createdByUserID, requiredPage, recordsPerPage, (int)profileStoryRetrievalType, storyActionTypeIDList, portalID, totalRows);
            totalRows = results.RecordsAffected;
            return CBO.FillCollection<SmartThinker_StoryFeed_ActionInfo>(results);
        }

 


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
1/4/2009 7:53 PM
 

Rod, please be aware, that records affectes is not a replacement for out params, you might use consider to use a function instead.

Regarding missing core support of out params, you might consider to include you own version of ms daab calls to achive what you need (quite straight forward).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/4/2009 10:03 PM
 

Sebastian Leupold wrote

Rod, please be aware, that records affectes is not a replacement for out params, you might use consider to use a function instead.

Yes, I am aware of that - I was showing how to hack around the problem to achieve my solution - not suggesting it works everywhere. This is the quickest way of getting round the problem I had I believe.

 


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Output Params with DAL+ - is it possible?Output Params with DAL+ - is it possible?


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