The Darkside

Shedding light on things and stuff

 
  Home :: Contact :: Syndication  :: Login
  75 Posts :: 0 Stories :: 49 Comments :: 2 Trackbacks

Ads

Archives

Post Categories

Open Source Projects

Other Blogs

February 2009 Entries

This is just a tip for anyone using GeneratorStudio or any other code generator for their ActiveRecord classes (or any other classes, for that matter). I generally have my templates set up to generate my files with the name "<TABLENAME>.Generated.cs" or something similar. In addition to this naming convention, I also make sure that my generated classes are marked as partial classes, and then I do all custom code, like additional "Find" methods methods, etc, in files named "<TABLENAME>.cs". This way, when you need to regenerate anything, you can be comfortable with overwriting all the classes that are...


This post contains a skeleton/template Windows service project that can be run as a console application when a specific command line parameters is passed through to it, or as a Windows service when installed as such. Also included in the project is a ready-to-use Windows service installer class which can be added as a custom action in an installer project. The custom action will install the service for you.