LinqExtender
LinqExtender copied to clipboard
Just curious about StartsWith
I was looking to creating a provider for a database called NexusDb and I got a lot of it working however I'm stuck at getting StartsWith turned into Like 'xxxx*'
Any help or direction would be appreciated.
Right now it fails at CreateInstance because it is trying to create a string.
///
/// Dynamically invokes the method.
/// </summary>
/// <returns></returns>
public object DynamicInvoke()
{
var args = new object[Arguments.Count];
int index = 0;
foreach (Expression @argument in Arguments)
{
args[index++] = Expression.Lambda(@argument).Compile().DynamicInvoke();
}
object target = Activator.CreateInstance(Method.DeclaringType);
return Method.Invoke(target, args);
}
Hi Terricide, Thanks for reporting the issue. Any sample code you can share with me so that i can investigate the issue and provide you with a solution ?
Cheers Mehfuz