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.0Development toolsDevelopment tools
Previous
 
Next
New Post
12/5/2006 2:42 PM
 

I have used code generators in the past like CodeSmith and the very popular templates for DNN development but in DNN 4 and asp.net 2.0 they dont seem to work the same way

I was looking at ATGen and the MyGeneration stuff but that too seems to be somewhat dependent on 1.1

Is anybody using a good code/module generator for DNN4 - or what ways are you doing it to automate these things?


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
12/5/2006 3:46 PM
 

code/module generator

I wrote my own module and skin object generator (call EZ-Objects).  The benefit is that it can create for any DNN version, and either ASP.net 1.1 or 2.0.  As a User, you don't need any VS version, it compiles and zips a package on my web site.  And it is free.

The reason I haven't actively promoted it is because, unless you use it for simple things, it takes a bit learning about how it works (to get the most use out of it).  And it actually can build anything VS 2003 or VS 2005 can.  But with the more complex modules you should have knowledge about command line compilers, resgen.exe, and maybe xml (here's example) to be able to do this on your own.


    - Doug Vogel     

 
New Post
12/5/2006 3:51 PM
 
That looks promising Doug but I was thinking of something that can create the info objects and data layer from existing stored procs or existing tables (or even build those out)

Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
12/5/2006 4:55 PM
 

Take a look at:

Converting the Survey module to use the DAL+

It shows how very little code is needed if you use the DAL+. I hope to demonstrate that you don't need code generators to create most DotNetNuke modules. In the past you did because the DAL required a lot of code with parameters that had to match up. Now, one line like this can call a stored procedure:

public static void UpdateSurvey(SurveyInfo objSurvey)
{
    DotNetNuke.Data.
DataProvider.Instance().ExecuteNonQuery("UpdateSurvey", objSurvey.SurveyId, objSurvey.Question, GetNull(objSurvey.ViewOrder), objSurvey.OptionType, objSurvey.CreatedByUser, objSurvey.ModuleId);
}



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
12/5/2006 5:01 PM
 

Michael

I have looked at that and will use it but it not a matter of matching up parameters or any other such nonsense - its really I am lazy - I hate writting all those stored procs and such if there was a tool to define the tables and maybe edit the stored procs right inside it then it would generate all the basic stuff (using the original DAL or DAL+) it would be nice and save me a lot of the time but I will most likely just have to do it all by hand - i guess - I know Bo N has his DAL tool but its not really for DNN4 - would probably work though


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Development toolsDevelopment tools


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