I want to extend an EF entity in a partial class with methods and properties. I\'ve done this quite often. But now I would need to combine data from this entity with data fr
There is no build in way to get current ObjectContext
from entity. Entities based on EntityObject
class and POCO proxies uses ObjecContext
internally but they don't expose it.
Adding such depnedency into your entities is considered as bad design so you should perhaps explain what you are trying to do and we can find other (better) solution.