Login
Register
07-02-2012

Resources for the DotNetNuke Community


Support this site

  Support forums  

You need to be logged in in order to post to this forums.
SearchForum Home
  DotNetNuke Development  Templates  Updated C# temp...
 Updated C# templates
 
imgOfflinetkraft
1 posts
Joined
2/24/2006

Updated C# templates
Posted: 24 Feb 06 7:03 AM

All,

I used these templates and the tutorial at BiteTheBullet.co.uk to get started with custom module development and it all worked!

A couple suggestions - create your own separate solution file in \DesktopModules\<modulename> and work from that.  The tutorial tells you how to setup the build properties and debug settings to work with your dnn development site and debug your module.

I also updated the C# and Stored Procedure templates to have them handle the ObjectQualifier correctly.  The ObjectQualifier was a required parameter when running the template, but if you haven't created your table(s) in the database with one, it's a pain to have to enter it every time.  So I made it optional and changed the template to test whether you entered one or not.  The SP template generates the SQL needed for the DNN installer to create the module table(s)  so it inserts the {databaseowner} and {objectqualifier} tags.  The other purpose for the parameter is to strip the objectqualifier off of the table name (in case you did create your table(s) using one) when it generates the source code methods/sp calls since you only want the base tablename.

Also, the CSharp templates produced byte() instead of byte[] for binary/image data and I changed that.

I think the support for image/binary fields may not be all checked out.

I'd be glad to post these updated templates if dnnJungle wants them.

Thanks,

Toby

  DotNetNuke Development  Templates  Updated C# temp...
© Vicenç Masanas Terms Of Use Privacy Statement   
.