CodeSmith Community
Your Code. Your Way. Faster!

PLINQO QuickStart restart?

rated by 0 users
Answered (Verified) This post has 1 verified answer | 6 Replies | 2 Followers

Not Ranked
7 Posts
Points 155
wayne_wilner posted on Wed, Jul 1 2009 4:52 PM

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

Answered (Verified) Verified Answer

Top 25 Contributor
208 Posts
Points 84,135
Verified by wayne_wilner

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.

  • | Post Points: 55

All Replies

Top 25 Contributor
208 Posts
Points 84,135
Suggested by blake05

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

  • | Post Points: 35
Not Ranked
7 Posts
Points 155

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
  • | Post Points: 35
Top 25 Contributor
208 Posts
Points 84,135

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?

  • | Post Points: 35
Not Ranked
7 Posts
Points 155

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
  • | Post Points: 35
Top 25 Contributor
208 Posts
Points 84,135
Verified by wayne_wilner

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.

  • | Post Points: 55
Not Ranked
7 Posts
Points 155

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
  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Copyright © 2010 CodeSmith Tools, LLC