Skip to content

Conversation

@hishamco
Copy link
Member

@hishamco hishamco commented Dec 4, 2025

Fixes #18607

@hishamco hishamco requested a review from sebastienros December 4, 2025 18:04
private const string _updateFromPrefix = "UpdateFrom";
private const string _asyncSuffix = "Async";

private static readonly Expression<Func<MethodInfo, bool>> _createMethodExpression = m
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't improve anything, it's just building a predicate dynamically, which the compiler can do at compile time. So it's actually worse. The real cost is in the reflection. If (if if ifif ) we really want to remove reflection we would need codegen.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will use reflection instead :) But that's why I used interface-based methods instead of relying on reflection in Orchard Core Contrib

@hishamco hishamco requested a review from sebastienros December 5, 2025 11:48
return null;
}

private static MethodInfo GetUninstallMethod(IDataMigration dataMigration)
Copy link
Member Author

Choose a reason for hiding this comment

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

We could merge both methods instead

@hishamco hishamco requested a review from gvkries December 5, 2025 11:49
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

Successfully merging this pull request may close these issues.

DataMigrationManager/DataMigration disagree on Uninstall method signature

3 participants