About the author

Steven Harmansteven harman :: makes sweet software with computers!

For recent posts and more about me, scroll to the bottom.

Sponsors

Subscribe

  • Subscribe to my feed. via RSS
  • Subscribe via email via email

codegeneration

There are 1 entries for the tag codegeneration

[Note to Self] SubSonic Requires a Primary Key for Every Table

After stumbling over this a couple of times in the past week I decided to blog-it so I won't forget again. By convention, SubSonic requires that any tables to be auto-generated into the DAL have a primary key. #1 sign you're missing a primary key You have your super-sweet database humming along in it's fully normalized form. You try to generate your DAL with SubSonic but one of your tables isn't being code-gened. For example, if you have a Customer table then SubSonic should generate the following three classes: Customer CustomerCollection CustomerController Note: Customer and CustomerCollection will...