Question in general: public class DbContext: IDisposable, IObjectContextAdapter
DbContext implements IObjectContextAdapter. IObjectContextAdapter has one property,
public interface IObjectContextAdapter
{
ObjectContext ObjectContext { get; }
}
however, I cannot find this property in the DbContext; it’s just not in the metadata. The only way to access it is to distinguish DbContext as an IObjectContextAdapter.
I don’t understand - I would think that the public properties of an interface are revealed by the implementing classes, regardless of whether they are poured into the interface or not. I feel like I'm missing something here ...
source
share