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

New EF Core comment support #950

Closed
wants to merge 1 commit into from
Closed

New EF Core comment support #950

wants to merge 1 commit into from

Conversation

roji
Copy link
Member

@roji roji commented Jul 28, 2019

Closes #892

@roji
Copy link
Member Author

roji commented Jul 28, 2019

Note: I may hold off merging this until dotnet/efcore#16798 is fixed, to cover all cases.

Copy link
Contributor

@YohDeadfall YohDeadfall left a comment

Choose a reason for hiding this comment

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

Looks good, but could be improved a little bit. See my comments.

@@ -45,5 +44,8 @@ public static class NpgsqlAnnotationNames

[Obsolete("Replaced by ValueGenerationStrategy.SerialColumn")]
public const string ValueGeneratedOnAdd = Prefix + "ValueGeneratedOnAdd";

[Obsolete("Replaced by built-in EF Core support")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense to write a constant in this class with a value like "Replaced by built-in EF Core support. Use HasComment", and reuse it for all Obsolete attributes.

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 changed the obsolete messages to be more informative, but am keeping them separate since the ones on the builder should be much more concise/easy. The others (like this one in NpgsqlAnnotationNames) will likely not be seen by end users anyway.

@roji
Copy link
Member Author

roji commented Jul 30, 2019

Holding off on this until issues in the upstream implementation are fixed (dotnet/efcore#16819)

@roji
Copy link
Member Author

roji commented Aug 22, 2019

Superceded by #992

@roji roji closed this Aug 22, 2019
@roji roji deleted the Comments branch September 8, 2020 12:28
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.

Align with new EF Core comments support
3 participants