Skip to content

Commit

Permalink
Fix doc typo (#25861)
Browse files Browse the repository at this point in the history
Fixes #25860
  • Loading branch information
roji authored Sep 3, 2021
1 parent 61a0cac commit b0210f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/EFCore.Relational/Extensions/RelationalPropertyExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -911,19 +911,19 @@ public static void SetDefaultValue(this IMutableProperty property, object? value
}

/// <summary>
/// Returns a flag indicating if the property as capable of storing only fixed-length data, such as strings.
/// Returns a flag indicating whether the property is capable of storing only fixed-length data, such as strings.
/// </summary>
/// <param name="property"> The property. </param>
/// <returns> A flag indicating if the property as capable of storing only fixed-length data, such as strings. </returns>
/// <returns> A flag indicating whether the property is capable of storing only fixed-length data, such as strings. </returns>
public static bool? IsFixedLength(this IReadOnlyProperty property)
=> (bool?)property.FindAnnotation(RelationalAnnotationNames.IsFixedLength)?.Value;

/// <summary>
/// Returns a flag indicating if the property as capable of storing only fixed-length data, such as strings.
/// Returns a flag indicating whether the property is capable of storing only fixed-length data, such as strings.
/// </summary>
/// <param name="property"> The property. </param>
/// <param name="storeObject"> The identifier of the table-like store object containing the column. </param>
/// <returns> A flag indicating if the property as capable of storing only fixed-length data, such as strings. </returns>
/// <returns> A flag indicating whether the property is capable of storing only fixed-length data, such as strings. </returns>
public static bool? IsFixedLength(this IReadOnlyProperty property, in StoreObjectIdentifier storeObject)
{
var annotation = property.FindAnnotation(RelationalAnnotationNames.IsFixedLength);
Expand All @@ -942,15 +942,15 @@ public static void SetDefaultValue(this IMutableProperty property, object? value
}

/// <summary>
/// Sets a flag indicating whether the property as capable of storing only fixed-length data, such as strings.
/// Sets a flag indicating whether the property is capable of storing only fixed-length data, such as strings.
/// </summary>
/// <param name="property"> The property. </param>
/// <param name="fixedLength"> A value indicating whether the property is constrained to fixed length values. </param>
public static void SetIsFixedLength(this IMutableProperty property, bool? fixedLength)
=> property.SetOrRemoveAnnotation(RelationalAnnotationNames.IsFixedLength, fixedLength);

/// <summary>
/// Sets a flag indicating whether the property as capable of storing only fixed-length data, such as strings.
/// Sets a flag indicating whether the property is capable of storing only fixed-length data, such as strings.
/// </summary>
/// <param name="property"> The property. </param>
/// <param name="fixedLength"> A value indicating whether the property is constrained to fixed length values. </param>
Expand Down
2 changes: 1 addition & 1 deletion src/EFCore.Relational/Metadata/IColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public interface IColumn : IColumnBase
=> PropertyMappings.First().Property.IsUnicode(StoreObjectIdentifier.Table(Table.Name, Table.Schema));

/// <summary>
/// Returns a flag indicating if the property as capable of storing only fixed-length data, such as strings.
/// Returns a flag indicating whether the property is capable of storing only fixed-length data, such as strings.
/// </summary>
bool? IsFixedLength
=> PropertyMappings.First().Property.IsFixedLength(StoreObjectIdentifier.Table(Table.Name, Table.Schema));
Expand Down

0 comments on commit b0210f0

Please sign in to comment.