Skip to content

DataSourceLoader - Update DynamicClassBridge class to use renamed DynamicClass indexer in System.Linq.Dynamic.Core v1.6.8#683

Open
AlisherAmonulloev wants to merge 1 commit intomasterfrom
check_dynamic_class_with_32_entries
Open

DataSourceLoader - Update DynamicClassBridge class to use renamed DynamicClass indexer in System.Linq.Dynamic.Core v1.6.8#683
AlisherAmonulloev wants to merge 1 commit intomasterfrom
check_dynamic_class_with_32_entries

Conversation

@AlisherAmonulloev
Copy link
Copy Markdown

@AlisherAmonulloev AlisherAmonulloev commented Nov 7, 2025

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modifies the DynamicClassBridge class to dynamically retrieve the indexer name from the System.Linq.Dynamic.Core.DynamicClass type instead of hardcoding it as "Item". This change makes the code more flexible and adaptable to potential variations in the DynamicClass implementation.

Key Changes

  • Replaced hardcoded indexer method lookup with dynamic retrieval based on a static field
  • Added reflection logic to read the IndexerName field from the DynamicClass type
  • Included fallback to "Item" if the field is not found or null

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread net/DevExtreme.AspNet.Data/Types/DynamicClassBridge.cs
@mpreyskurantov mpreyskurantov added dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels Dec 22, 2025
@AlisherAmonulloev AlisherAmonulloev changed the title DRAFT: Update DynamicClassBridge.cs Update DynamicClassBridge.cs Apr 16, 2026
@AlisherAmonulloev AlisherAmonulloev changed the title Update DynamicClassBridge.cs DataSourceLoader - Update DynamicClassBridge class to use renamed DynamicClass indexer in System.Linq.Dynamic.Core v1.6.8 Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants