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

DefaultDynamicLinqCustomTypeProvider Issue #830

Closed
nmadland opened this issue Jul 24, 2024 · 7 comments
Closed

DefaultDynamicLinqCustomTypeProvider Issue #830

nmadland opened this issue Jul 24, 2024 · 7 comments
Assignees
Labels

Comments

@nmadland
Copy link

Here is what to include in your request to make sure we implement a solution as quickly as possible.

1. Description

We recently upgraded this package from version 1.3.12 to 1.4.3, and suddenly started getting the below exception.

2. Exception

If you are seeing an exception, include the full exception details (message and stack trace).

Exception while parsing expression `true` - Method not found: 'Void
System.Linq.Dynamic.Core.CustomTypeProviders.DefaultDynamicLinqCustomTypeProvider..ctor(Boolean)'.

3. Fiddle or Project

Otherwise, make sure to include as much information as possible to help our team to reproduce the issue.

4. Any further technical details

It appears to be part of this commit possibly -
852434c#diff-59a013aa11deb1923983dd1185ff649c2c327d2841621d18dff2991ebbef6d6d

It looks like in version 1.4.3, a constructor parameter was added for a parsing config object. Is there a way for you to make this nullable or optional, or to use an empty default assembly helper like before, if no parsing config is passed in?

But we were hoping that since we didn't have issues with the previous version that we wouldn't have to make a change on our side, beings this is not a major version upgrade in the package. Do you happen to have any capacity to address this please?

Thank you.

@StefH
Copy link
Collaborator

StefH commented Jul 29, 2024

I can try to make the config a nullable argument.

However I wonder why you get this exception? I would expect that you get a an error at build-time?

@StefH StefH self-assigned this Jul 29, 2024
@nmadland
Copy link
Author

nmadland commented Jul 29, 2024

Upon looking at things closer on my side, we are using the SLDC package through the RulesEngine package. We are running version 5.0.3 of that. That version states that it requires an SLDC dependency >= 1.3.7. I would think RulesEngine should still work using SLDC 1.4.3?

@StefH
Copy link
Collaborator

StefH commented Jul 29, 2024

I would think RulesEngine should still work using SLDC 1.4.3?

I do not think so, can you create an issue on the RulesEngine repo?

@nmadland
Copy link
Author

Yes sure thing. Thank you.

@nmadland
Copy link
Author

There still is the issue that the latest SLDC has a breaking change in the DefaultDynamicLinqCustomTypeProvider class. I think it would be beneficial to allow consumers to keep using the old constructor with the understanding it's deprecated. It just makes for a sub-optimal experience when a breaking change is introduced when it's not expected. Great library and thank you!

@StefH
Copy link
Collaborator

StefH commented Jul 29, 2024

#833

I think this PR should fix it. Can you verify the code?

@StefH StefH closed this as completed Jul 29, 2024
@ivansager
Copy link

Thanks @StefH that did resolve the issue .

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

No branches or pull requests

3 participants