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

ExpandoObject exceptions during Rebus.SqlServer initialization #112

Open
ADD-David-Antolin opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@ADD-David-Antolin
Copy link

When Rebus.SqlServer is initialized, the following exception occurs in background (although it does not stop the initialization).

Microsoft.CSharp.RuntimeBinder.BinderException:
''System.Dynamic.ExpandoObject' does not contain a definition for 'TABLE_SCHEMA''

followed by

Microsoft.CSharp.RuntimeBinder.BinderException:
''System.Dynamic.ExpandoObject' does not contain a definition for 'TABLE_NAME''

The error is produced here:
https://github.com/rebus-org/Rebus.SqlServer/blob/master/Rebus.SqlServer/SqlServer/SqlServerMagic.cs#L31

I think the use of dynamic and ExpandoObject is unnecessary here:

https://github.com/rebus-org/Rebus.SqlServer/blob/master/Rebus.SqlServer/SqlServer/SqlServerMagic.cs#L104-L108

and can be substituted with a Dictionary<string, string>.

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

1 participant