Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bishfoo opened this issue Feb 14, 2010 · 0 comments

Comments

@bishfoo
Copy link

bishfoo commented Feb 14, 2010

Environment:

  • SubSonic 2.2
  • Visual Studio .NET 2005
  • SQL Server 2000

Sample Table (called 'Sample')

  • SampleID, type=uniqueidentifier, Primary Key
  • SampleName, type=varchar, size=25

Setup Scaffold Control:

  1. Create a new page (e.g. Sample.aspx).
  2. Add the scaffold control to the page. (e.g. <ss:Scaffold id="scaffold" runat="server"/>
  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant