oibo8x / subsonicproject

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

DropDown.Where Property is not Correctly Set #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a SubSonic.DropDown
2. Give it a WhereField and WhereValue. 

What is the expected output? What do you see instead?
The where is not applied. 

What version of the product are you using? On what operating system?
V2.1 changed the code to the new query tool. 
DropDown.cs, line 186 currently says:
q.Where(WhereField).Equals(WhereValue);
when it should say:
q.Where(WhereField).IsEqualTo(WhereValue);

Naughty you!! You should definitely review the whole codebase to ensure no 
other Equals were entered by accident. 

Please provide any additional information below.

While at it, please add this method, which was discussed in the forums in 
the past but never included here:
        public override void DataBind()
        {
            // creates the children 
            CreateChildControls();
        }

This issue is not on CodePlex. 

Original issue reported on code.google.com by jason.ke...@gmail.com on 11 Jul 2008 at 9:15

GoogleCodeExporter commented 9 years ago
Thanks for the report Jason! I've fixed this for the next check-in and will 
review
the code base for similar issues...

Original comment by canof...@gmail.com on 15 Jul 2008 at 9:25

GoogleCodeExporter commented 9 years ago

Original comment by canof...@gmail.com on 18 Jul 2008 at 9:56

GoogleCodeExporter commented 9 years ago
Fixed in Revision 474.

Original comment by canof...@gmail.com on 18 Jul 2008 at 10:06