Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate change-tracking delegates in the compiled model. #31443

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

AndriySvyryd
Copy link
Member

Part of #29761

Still missing private constructors and service property bindings

@AndriySvyryd AndriySvyryd marked this pull request as ready for review January 9, 2024 00:58
@AndriySvyryd AndriySvyryd force-pushed the NativeAOT_part3 branch 2 times, most recently from 78d8e80 to 1a531e7 Compare January 9, 2024 03:00
@AndriySvyryd AndriySvyryd requested a review from a team January 9, 2024 03:00
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public static readonly MethodInfo PopulateListMethod
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this move to a common, public, location?

Copy link
Member Author

Choose a reason for hiding this comment

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

It points to a method on a pubternal class. To me it makes sense for it to be pubternal as well.

@roji
Copy link
Member

roji commented Jan 24, 2024

FYI starting to review (especially the LinqToCSharp changes).

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

Reviewed the LinqToCSharpSyntaxTranslator changes; overall looks good but there are several things we should discuss (we can jump into a call tomorrow if you want).

/// </summary>
protected virtual ExpressionSyntax GenerateValue(object? value)
{
return value switch
Copy link
Member

Choose a reason for hiding this comment

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

nit: expression-bodied

Copy link
Member Author

Choose a reason for hiding this comment

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

Can't, contains local functions that you like so much

// return NullableType(Translate(type.GenericTypeArguments[0]));
//}

var generic = GenericName(
Copy link
Member

Choose a reason for hiding this comment

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

I think we need this logic to produce fully-qualified names, to avoid the usual ambiguities etc. (unrelated to this PR).

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

Aside from the compound assignment issue for private fields, LGTM.

@AndriySvyryd AndriySvyryd merged commit 59ca09f into main Jan 26, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the NativeAOT_part3 branch January 26, 2024 20:27
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.

3 participants