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

Fix typos in PropertyAccessMode #27248

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 18 additions & 23 deletions src/EFCore/PropertyAccessMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,53 +25,48 @@ public enum PropertyAccessMode
/// Enforces that all accesses to the property must go through the field.
/// </summary>
/// <remarks>
/// An exception will be thrown if this mode is set and it is not possible to read
/// from or write to the field.
/// An exception will be thrown if this mode is set and it is not possible to read from or write to the field.
/// </remarks>
Field,

/// <summary>
/// Enforces that all accesses to the property must go through the field when
/// new instances are being constructed. New instances are typically constructed when
/// entities are queried from the database.
/// An exception will be thrown if this mode is set and it is not possible to
/// write to the field.
/// Enforces that all accesses to the property must go through the field when new instances are being constructed. New instances are
/// typically constructed when entities are queried from the database. An exception will be thrown if this mode is set and it is not
/// possible to write to the field.
/// </summary>
/// <remarks>
/// All other uses of the property will go through the property getters and setters,
/// unless this is not possible because, for example, the property is read-only, in which
/// case these accesses will also use the field.
/// All other uses of the property will go through the property getters and setters, unless this is not possible because, for
/// example, the property is read-only, in which case these accesses will also use the field.
/// </remarks>
FieldDuringConstruction,

/// <summary>
/// Enforces that all accesses to the property must go through the property
/// getters and setters, even when new objects are being constructed.
/// Enforces that all accesses to the property must go through the property getters and setters, even when new objects are being
/// constructed.
/// </summary>
/// <remarks>
/// An exception will be thrown if this mode is set and it is not possible to read
/// from or write to the property, for example because it is read-only.
/// An exception will be thrown if this mode is set and it is not possible to read from or write to the property, for example
/// because it is read-only.
/// </remarks>
Property,

/// <summary>
/// All accesses to the property goes directly to the field, unless the field is
/// not known, in which as access goes through the property.
/// All accesses to the property goes directly to the field, unless the field is not known, in which case access goes through the
/// property.
/// </summary>
PreferField,

/// <summary>
/// All accesses to the property when constructing new entity instances goes directly
/// to the field, unless the field is not known, in which as access goes through the property.
/// All other uses of the property will go through the property getters and setters,
/// unless this is not possible because, for example, the property is read-only, in which
/// case these accesses will also use the field.
/// All accesses to the property when constructing new entity instances goes directly to the field, unless the field is not known,
/// in which case access goes through the property. All other uses of the property will go through the property getters and setters,
/// unless this is not possible because, for example, the property is read-only, in which case these accesses will also use the
/// field.
/// </summary>
PreferFieldDuringConstruction,

/// <summary>
/// All accesses to the property go through the property, unless there is no property or
/// it is missing a setter/getter, in which as access goes directly to the field.
/// All accesses to the property go through the property, unless there is no property or it is missing a setter/getter, in which
/// case access goes directly to the field.
/// </summary>
PreferProperty
}