Closed cal-tlabwest closed 8 months ago
Could you clarify what kind of context you have so it doesn't derive DataConnection or DataContext?
Could you clarify what kind of context you have so it doesn't derive DataConnection or DataContext?
We're just trying to control API surfaces exposed in our project:
public class MyContext: IDataContext { DataConnection Context { get; }
// Wrap Context
Func
Some code assumes only DataConnection or DataContext can implement IDataContext. This PR fixes some of these assumptions.
Note: Will try to find a "public Action OnTraceConnection" property on the custom IDataContext class. Add something like this If you have a custom implementation that wraps an internal DataContext:
// Important for LinqPad public Action OnTraceConnection { get => Context.OnTraceConnection; set => Context.OnTraceConnection = value; }