Illegal attempt to associate a collection with two open sessions.
These are my tables: Users - UserId, StateId, CityId (StateId > States.StateId, CityId > Cities.CityId)
States - StateId, StateName
Cities - CityId, StateId, CityName (StateId > States.StateId)
//Code UsersRepo rUser = new UserRepo(); rUser.State = rStateRepo.Load<State>(1); rUser.City = rCityRepo.Load<City>(1);
This does not work, am i using sessions in wrong way.???
_________________ No one will manufacture a lock without key, similarly god will never give problems without a solution.
|