subsonic / SubSonic-2.0

SubSonic 2.0 Home
http://subsonic.github.io/
Other
80 stars 45 forks source link

Scaffold control broken for tables with GUID (uniqueidentifier) primary keys. #11

Open bishfoo opened 14 years ago

bishfoo commented 14 years ago

Environment:

Sample Table (called 'Sample')

Setup Scaffold Control:

  1. Create a new page (e.g. Sample.aspx).
  2. Add the scaffold control to the page. (e.g.
  3. Set the Mode (ScaffoldMode?) property to 'Automatic'.
  4. Set the TableName property to 'Sample'.

Reproduce The Error:

  1. Open the page with the scaffold control.
  2. Select the sample table from the table list.
  3. Click the 'Add' button. Note: The 'Add' screen only has a text box for the 'SampleName' field/column.
  4. Enter some text in the 'SampleName' text box.
  5. Click the 'Save' button.
    • An exception is throw complaining about entering a NULL value into the 'SampleID' column.

When I Googled this issue I found references to a couple of 'resolved' work items, but all of the links to the original issues were broken - probably lost when subsonic was moved to github.

I would greatly appreciate any help with this problem.