The DynamicLinqType attribute can not be added to interfaces.
If I have a field in a class that is of type interface:
private readonly IExternalMethod externalMethod;
Interface and implementation:
public interface IExternalMethod
{
int Run();
}
[DynamicLinqType]
public class ExternalMethod : IExternalMethod
{
public int Run() => 1;
}
Trying to run functions on that with dynamic linq does not work even in the implementing class of the interface has the DynamicLinqType attribute.