Skip to content

Add LinqToVisualBasicSyntaxTranslator#97

Merged
lorcQc merged 1 commit intoefcore:masterfrom
lorcQc:LinqToVB
Jan 27, 2024
Merged

Add LinqToVisualBasicSyntaxTranslator#97
lorcQc merged 1 commit intoefcore:masterfrom
lorcQc:LinqToVB

Conversation

@lorcQc
Copy link
Collaborator

@lorcQc lorcQc commented Jan 15, 2024

Adds a service for generating VB code from LINQ expression trees.
For v8, it will be used to translate Expression(Of T) for compiled model generation.

To do this, I started with the C# implementation and then modified it for VB.

It's difficult, if not impossible, to translate all the features of LINQ expressions. Here are some of the limitations of this first version
Checked and unchecked unary/binary expressions are treated in the same way.
PostIncrementAssign, PostDecrementAssign, PreIncrementAssign and PreDecrementAssign throw a NotSupportedException.
Only SwitchExpressions without Comparison MethodInfo are supported.

@lorcQc lorcQc merged commit 012d76a into efcore:master Jan 27, 2024
@lorcQc lorcQc deleted the LinqToVB branch January 28, 2024 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant