Yitzchok / subsonicproject

Automatically exported from code.google.com/p/subsonicproject
0 stars 0 forks source link

Scaffold not working when updating primary key fields #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Using the scaffold, add a row and modify that requires you to provide
the primary key(i.e. not an auto-increment field. 
2.  Attempt to save the record.

What is the expected output? What do you see instead?
Expected:
It saves the record.
Actual:
Query tool throws and exception because it cannot insert null values into
the key.

What version of the product are you using? On what operating system?

SubSonic 2.1
Windows XP

Please provide any additional information below.

I have found the problem in the Scaffold.cs under SubSonic\Controls.  I
have attached a diff of the changes required to fix this issue.  This also
works with combination keys.  Let me if this works for you.  Thanks!

Original issue reported on code.google.com by bradphil...@earthlink.net on 12 Jul 2008 at 12:32

Attachments:

GoogleCodeExporter commented 9 years ago
Sweet! Thank you for the patch. It worked well for me.

Original comment by dave.nee...@gmail.com on 12 Feb 2009 at 4:15

GoogleCodeExporter commented 9 years ago
Patch added - thank you!

Original comment by robcon...@gmail.com on 1 Apr 2009 at 3:36

GoogleCodeExporter commented 9 years ago

Original comment by robcon...@gmail.com on 1 Apr 2009 at 3:36