efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Directly support value converters and comparers that reference only a static expression method

Open ajcvickers opened this issue 1 year ago • 3 comments

That is, more than just passing an expression for the method call to the ValueConverter constructor.

ajcvickers avatar Jan 11 '24 11:01 ajcvickers

See #32659

ajcvickers avatar Jan 11 '24 11:01 ajcvickers

Also comparers?

roji avatar Jan 11 '24 12:01 roji

Related to #32717

As for the implementation, we can determine when to generate a static method for a given Expression by calling a new ILinqToCSharpSyntaxTranslator.Translate method that would return either a StatementSyntax or ExpressionSyntax.

AndriySvyryd avatar Jan 25 '24 19:01 AndriySvyryd