LinqExtender icon indicating copy to clipboard operation
LinqExtender copied to clipboard

Just curious about StartsWith

Open Terricide opened this issue 13 years ago • 1 comments

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);
        }

Terricide avatar May 04 '12 08:05 Terricide

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

mehfuzh avatar May 05 '12 16:05 mehfuzh