Re: PLINQO QuickStart restart? - PLINQO - Template Frameworks - CodeSmith Community
Welcome to the CodeSmith Community!

Re: PLINQO QuickStart restart?

Template Frameworks

A description has not yet been added to this group.

PLINQO QuickStart restart?

Answered (Verified) This question is answered

PLINQO QuickStart worked perfectly the first time, but I wanted to change from QueryExtensions to ManagerClasses, so I deleted the generated directory and tried it a second time, and a third, fourth, fifth, etc.  Generate creates no code at all.  I tried uninstalling and reinstalling, but I still get nothing generated.  What is suspicious is that the data source that I defined the first time is still available in the SourceDatabase list.  After uninstalling, shouldn't that revert to its original list?  Also, the Compiler Output window says "Using cached template assembly".  Where is the cache, so I can clear it?

How can I get PLINQO Quickstart to work again?

Dr. W. T. Wilner Administaff
  • Post Points: 35
Verified Answer
  • The files generated by the quick start don't actually execute the csp.  The csp is set to generate on build.  (right click the csp and it is in the options menu).  You either have to build the project or right click the csp file and click generate, then you should see the files generate.

All Replies
  • Do you get any errors or prompts?

    When you say you deleted the generated directory, you deleted the entire project?  The quick start will not generate to a folder unless the folder is empty.

    Depending on your operating system.  If you are using Vista or Windows 7, the template cache is located at C:\ProgramData\CodeSmith\v5.1\Template Cache

    Suggested by
  • No errors or prompts.  Thanks for reminding me that the destination must be completely empty; that helps.

    I also deleted the TemplateCache directory, but when I generate, only the solution file and project files (UI, Test, Data) are generated, with no *.cs files corresponding to the 37 tables that are in the SqlServer 2005 database.  As I said, the first time, it worked perfectly.

    I am still mystified that clicking on QuickStart.cst brings up CodeSmith with my property values (SourceDatabase, Location, QueryPattern, etc.) rather than the Petshop values that were originally there.  Where is PLINQO/CodeSmith hiding my property values?  I suspect that something is amiss with that information, so if I could delete it, and start from scratch, then it would work as it did the first time.

    Dr. W. T. Wilner Administaff
  • Try clicking the reset defaults button in the toolbar of the property grid.  It is the blue arrow button.  That should clear all your values and essentially start you over.

    If that doesn't help, can you send a quick video of what you are doing to CodeSmith Support?

  • PLINQO Support.zip

    Sorry, but resetting the defaults did not cause the generator to produce files.  In lieu of a video, here are screen shots and the generated output.

     

    Dr. W. T. Wilner Administaff
  • The files generated by the quick start don't actually execute the csp.  The csp is set to generate on build.  (right click the csp and it is in the options menu).  You either have to build the project or right click the csp file and click generate, then you should see the files generate.

  • Don't you love herding idiots?

    Thanks for guiding me through the process.  I have looked at a lot of ORM and DAL products and am impressed by the code you are generating.  It appears that it could help us significantly.  I'll work on some customizations and see where we end up.

    Dr. W. T. Wilner Administaff
Page 1 of 1 (7 items)