This project has moved and is read-only. For the latest updates, please go here.

HOW TO



How do I start using CslaGenFork?
  1. Download the latest version of CslaGenFork from this project Downloads section (MSI installer).
  2. Download the latest version of the templates from this project Downloads section (ZIP file). UNZIP the templates file somewhere handy (in case you want to edit them)
  3. Download the free CodeSmith version from this CodeSmith link. This is version 2.6, an old free version. Just leave it there, no need to unzip as CslaGenFork will do it for you.
  4. Run the CslaGenFork MSI installer.
  5. Open CslaGenFork
  6. Go to Tools -> CodeSmith Extension...
  7. On the CodeSmith Extension Handler popup click Install, choose the CodeSmith ZIP file and click Open. Now click Exit to go back to CslaGenFork.
  8. Go to Tools -> Locate Template Directory, choose the templates folder you chose in step 2. and click OK
Now you are ready to start using CslaGenFork. In no time you will be generating your first project.

NOTE - CslaGenFork expects you to use a user account with administrative privileges in order to change the template location folder and default project settings.

VERY IMPORTANT NOTE - As stated elsewhere, most advanced features of CslaGenFork will only work if you are using C# code generation and target CSLA40 or CSLA45 or the DAL targets.


What is the suggested way of using CslaGenFork?
You should use a source control system but you don't have to pay for it. Subversion/SVN is now a usable and very good choice, not to mention you can have a full system for free:
Suggested workflow:
  1. create a database with proper Primary Keys and Foreign Keys
  2. create a project with CslaGenFork
  3. generate the source code
  4. commit the XML project file and the source code files to the repository
  5. edit the sources changing whatever you like and commit again - it's better to left the .Designer files alone and edit only the extended (non .Designer) files
  6. change the CslaGenFork project
  7. regenerate - only the .Designer files will be regenerated; in order to get freshly regenerated extended (non .Designer) files you must delete the old ones)
  8. commit the project file again
  9. use AnkhSVN "Show Changes" to help you keep the changes made previously that you want to keep
  10. commit the source files again

NB - The term "commit" is a SVN term for what SourceSafe, TFS, etc call "Check In".

Last edited Jul 14, 2015 at 11:55 AM by tiago, version 35

Comments

No comments yet.