-
Notifications
You must be signed in to change notification settings - Fork 15
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
Make TableHandle
implement IDataContainerHandle
(fixes #260)
#261
Conversation
This fixes `NullReferenceException` when calling `Dbosoft.YaNco.Table.GetTypeDescription()` method.
TableHandle
implement IDataContainerHandle
(#260)TableHandle
implement IDataContainerHandle
(fixes #260)
Hello, thank you for the issue report and the PR. However just changing ITableHandle to IDataContainerHandle would introduce another issue. IDataContainerHandle is used in all cases where the handle could contain other data (for example in GetStructure, GetTable, GetString, and so on). Could you please instead introduce another interface ITypeHandle and add it to GetTypeDescription and to IDataContainerHandle and ITableHandle? Thanks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of adding IDataContainerHandle a new interface ITypeHandle should be used as TableHandle won't work for other use cases of IDataContainerHandle.
Hi, Thanks for the follow up. Maybe I'm not getting it, but I see some issues here. There are two interfaces named
In First of all, I see having these two separate interfaces problematic, causing unnecessary complications. Second, I see no reason for the second interface to not be implemented by |
Sorry for the delay, but now I have looked into this problem. However, this makes no sense in terms of the semantic meaning of the data container, as it should only be used for fields that support reading and setting the underlying field values. Again, thanks for your PR and your support. I will merge the PR. |
fixes #260 |
This fixes `NullReferenceException` when calling `Dbosoft.YaNco.Table.GetTypeDescription()` method.
Thanks for approving the PR. |
This fixes
NullReferenceException
when callingDbosoft.YaNco.Table.GetTypeDescription()
method.