Moves CDP POCOs and handles null ref when x-ms-capabilities are null for a CDP Connector. #2913
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements and refactorings to the Microsoft PowerFx Connectors library, including the addition of new POCO (Plain Old CLR Object) classes, utility methods for handling delegation operators, and improvements to table and schema handling. The changes aim to improve the library's extensibility, maintainability, and support for metadata-driven operations.
New POCO Classes and Capabilities
CapabilitiesPoco,ColumnCapabilitiesPoco,GetTablePoco, andTableSchemaPococlasses to represent metadata for sorting, filtering, and schema definitions. These classes include support for JSON serialization attributes for easier integration with external systems. [1] [2] [3] [4]Utility Methods for Delegation Operators
ToStrextension method inExtensions.csto convertDelegationOperatorenums to lowercase string representations.Utilitiesclass with aToDelegationOpmethod to parse strings intoDelegationOperatorenums, enabling robust handling of filter function support.Refactoring of Internal Objects
GetTablesandRawTableclasses to improve encapsulation and simplify post-processing logic.GetTablesnow uses an enumerable forRawTableinstances, and post-processing logic has been integrated into property setters. [1] [2]CdpTableconstructors to useIEnumerable<RawTable>instead ofIReadOnlyCollection<RawTable>for better flexibility. (F09e88dfL25R25, [1] [2]Enhancements to Metadata Handling
ConnectorTypeconstructor to include logic for adding column capabilities toserviceCapabilitieswhen available.CdpServiceBase.GetObjectmethod to remove unused post-processing logic, simplifying the deserialization process.Minor Improvements
CdpTableResolver.csfor clarity when fetching table metadata.