❔ Expression<Func> using Reflection
Hello,
I'm using LINQ to SQL as part of an old legacy Business Object Layer and trying to use the following code using reflection instead of hardcoding the types.
Currently I have:
This loads
However, the desired outcome is to turn
So something like:
T gets passed in from the controller.
Any help would be appreciated.
I'm using LINQ to SQL as part of an old legacy Business Object Layer and trying to use the following code using reflection instead of hardcoding the types.
Currently I have:
This loads
WorkRequestItems with WorkRequest upon execution. However, the desired outcome is to turn
WorkRequest into TSo something like:
T gets passed in from the controller.
loadOptions.LoadWith<T> expects Expression<Func<T, object>> expression as it's argument.Any help would be appreciated.