Using the following code fails to translate at runtime:
public static class MyMappingExtensions
{
extension(MyGenericWrapper<MyEntity> wrappedEntity)
{
[Projectable]
public MyDto ToDto() => new() { /* ... */ }
}
}
Exception: System.InvalidOperationException: Unable to resolve generated expression for MyProject.Mappers.MyMappingExtensions.ToDto.
Extension blocks on MyEntity directly work. So does above's method as a static method (removing the extension block).
Projectables Version: 6.0.0 which includes #141
Using the following code fails to translate at runtime:
Exception:
System.InvalidOperationException: Unable to resolve generated expression for MyProject.Mappers.MyMappingExtensions.ToDto.Extension blocks on
MyEntitydirectly work. So does above's method as astaticmethod (removing the extension block).Projectables Version: 6.0.0 which includes #141