we needed access to the ObjectScope from an entity , so after some googling we found this:
Telerik.OpenAccess.OpenAccessContextBase.GetContext(this)
But the moment we tried using it, all brealpoints in the source of the domainmodel are no longer enabled.
Using Debug.WriteLine we found that it also always returned null.
The moment I removed the line from the code, breakpoints started working again.
Then after some more googling we found
Database.GetContext(this) as IObjectScope
And again breakpoints are no longer enabled. This not happens only to me but to other developers in my team.
The function works however (using Debug.Write we can see this). But not being able to set breakpoints is a major pain ....
This is what VS 2015 says of the breakpoint:
The breakpoint will currently not be hit. A copy of VastGoedObject.cs was found in WcfContracts.dll. but the current source code is different from the source found in WcfContracts.dll etc.....
Indeed we have a VastgoedObject.cs in WcfContracts but that one is as the dll mentions a Wcf contract for the VastGoedObject in the domainmodel.
Any idea what causes this?
Thanks
Ben