oibo8x / subsonicproject

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

Contains() not working #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a collection from db using .Load()
2. Load a individual object that would be in the collection above
3. Run CollectionName.Contains(Objectfromstep2)

What is the expected output? What do you see instead?
The Contains should return true but instead returns false

What version of the product are you using? On what operating system?
V2.1 on XP

Please provide any additional information below.
Here is a code snippet to reproduce with the SubSonicCentral test project -
throw this code in a page

 EmployeeCollection employeesFromDB = new EmployeeCollection().Load();
      Employee employee = new Employee(2);
      if (employeesFromDB.Contains(employee))
      {
        throw new Exception("Woot");
      }
      else
      {
        //WTF??
      }

      EmployeeCollection newEmployeesCollection = new EmployeeCollection();
      newEmployeesCollection.Add(employee);

      if (newEmployeesCollection.Contains(employee))
      {
        //Whats the diff between employee loaded from db manually and added
to collection
        //vs
        //Employee loaded into collection with the .Load() routine???
      }        

Original issue reported on code.google.com by jeremyco...@gmail.com on 21 Aug 2008 at 8:05

GoogleCodeExporter commented 9 years ago
You can close this  - yitzchok set me straight.  
http://forums.subsonicproject.com/forums/p/3721/15198.aspx#15198

Original comment by jeremyco...@gmail.com on 21 Aug 2008 at 9:24

GoogleCodeExporter commented 9 years ago
Closed per the request of the opener

Original comment by johnshee...@gmail.com on 9 Apr 2009 at 12:56