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

API review updates #31673

Merged
merged 1 commit into from
Sep 10, 2023
Merged

API review updates #31673

merged 1 commit into from
Sep 10, 2023

Conversation

ajcvickers
Copy link
Member

  • Rename ConverterMappingHints.Override to WithOverride
  • Rename the RelationalTypeMapping.Clone methods to sue With
  • Rename ILoggingOptions.ShouldWarnForEnumType to ShouldWarnForStringEnumValueInJson
  • Rename parameter to enumType
  • Rename IClrPropertyGetter/Setter methods
  • Make IReadOnlyProperty.GetElementType return IReadOnlyElementType
  • Make NullTypeMapping pubternal
  • Remove the SQLite HasSrid extension methods from primitive collection builders
  • Remove IInternalEntry
  • Use ITypeBase for ParameterBindingInfo constructor

@ajcvickers ajcvickers requested a review from a team September 9, 2023 17:41
src/EFCore.Relational/Storage/RelationalTypeMapping.cs Outdated Show resolved Hide resolved
/// <param name="fromDataAnnotation">Indicates whether the configuration was specified using a data annotation.</param>
/// <returns>The configuration for the elements.</returns>
IElementType? ElementType(bool primitiveCollection, bool fromDataAnnotation = false);
IConventionElementType? SetElementType(bool elementType, bool fromDataAnnotation = false);
Copy link
Member

Choose a reason for hiding this comment

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

I'm not convinced this is the best name. SetIsPrimitiveCollection makes more sense to me.

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 plan to work on another PR today that allows an element type that is not the type of a primitive collection. This allows things like ranges to be mapped with an element type.

Copy link
Member Author

Choose a reason for hiding this comment

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

/cc @roji

Copy link
Member

Choose a reason for hiding this comment

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

Even so, this refers to the existence of an element type, not the element type itself.
SetHasElementType?

Copy link
Member Author

Choose a reason for hiding this comment

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

@ajcvickers ajcvickers force-pushed the 230909_Ikea branch 2 times, most recently from 3020dbf to 9fe6ba6 Compare September 10, 2023 09:46
- Rename ConverterMappingHints.Override to WithOverride
- Rename the RelationalTypeMapping.Clone methods to sue With
- Rename ILoggingOptions.ShouldWarnForEnumType to ShouldWarnForStringEnumValueInJson
- Rename parameter to enumType
- Rename IClrPropertyGetter/Setter methods
- Make IReadOnlyProperty.GetElementType return IReadOnlyElementType
- Make NullTypeMapping pubternal
- Remove the SQLite HasSrid extension methods from primitive collection builders
- Remove IInternalEntry
- Use ITypeBase for ParameterBindingInfo constructor
@ajcvickers ajcvickers merged commit ecfc1ce into release/8.0 Sep 10, 2023
7 checks passed
@ajcvickers ajcvickers deleted the 230909_Ikea branch September 10, 2023 12:36
@danmoseley
Copy link
Member

Any changes in here (or other change between RC1 and RC2) that are breaking, we need to add to the efcore breaking change doc because RC1 was a go-live release.

The change in RelationalTypeMapping seems to be API breaking, eg..

@roji
Copy link
Member

roji commented Oct 11, 2023

@danmoseley in an offline chat I summarized the different approach we have to customer-facing breaking changes and provider-facing ones, let's maybe have a chat about this if you want.

@danmoseley
Copy link
Member

Ah interesting yes would like to learn, we can chat offline.

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.

4 participants