Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just curious about StartsWith #2

Open
Terricide opened this issue May 4, 2012 · 1 comment
Open

Just curious about StartsWith #2

Terricide opened this issue May 4, 2012 · 1 comment

Comments

@Terricide
Copy link

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);
        }
@mehfuzh
Copy link
Owner

mehfuzh commented May 5, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants