diff --git a/All.sln.DotSettings b/All.sln.DotSettings
index ce72e4db697..cc0f9910226 100644
--- a/All.sln.DotSettings
+++ b/All.sln.DotSettings
@@ -32,7 +32,74 @@
WARNINGTrue
- <?xml version="1.0" encoding="utf-16"?><Profile name="EntityFramework"><HtmlReformatCode>True</HtmlReformatCode><CSArrangeThisQualifier>True</CSArrangeThisQualifier><CSRemoveCodeRedundancies>True</CSRemoveCodeRedundancies><CSUseAutoProperty>True</CSUseAutoProperty><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSUseVar><BehavourStyle>CAN_CHANGE_TO_IMPLICIT</BehavourStyle><LocalVariableStyle>ALWAYS_IMPLICIT</LocalVariableStyle><ForeachVariableStyle>ALWAYS_IMPLICIT</ForeachVariableStyle></CSUseVar><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings><CSShortenReferences>True</CSShortenReferences><CSReformatCode>True</CSReformatCode><XMLReformatCode>True</XMLReformatCode><CSUpdateFileHeader>True</CSUpdateFileHeader><CSharpFormatDocComments>True</CSharpFormatDocComments><RemoveCodeRedundancies>True</RemoveCodeRedundancies><CSMakeAutoPropertyGetOnly>True</CSMakeAutoPropertyGetOnly><CSArrangeQualifiers>True</CSArrangeQualifiers><CSEnforceVarKeywordUsageSettings>True</CSEnforceVarKeywordUsageSettings><CSFixBuiltinTypeReferences>True</CSFixBuiltinTypeReferences><CSCodeStyleAttributes ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" RemoveRedundantParentheses="False" AddMissingParentheses="False" ArrangeBraces="False" ArrangeAttributes="True" ArrangeArgumentsStyle="False" /></Profile>
+ <?xml version="1.0" encoding="utf-16"?><Profile name="EntityFramework"><CSArrangeThisQualifier>True</CSArrangeThisQualifier><CSRemoveCodeRedundancies>True</CSRemoveCodeRedundancies><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSUseVar><BehavourStyle>CAN_CHANGE_TO_IMPLICIT</BehavourStyle><LocalVariableStyle>ALWAYS_IMPLICIT</LocalVariableStyle><ForeachVariableStyle>ALWAYS_IMPLICIT</ForeachVariableStyle></CSUseVar><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings><CSShortenReferences>True</CSShortenReferences><CSReformatCode>True</CSReformatCode><XMLReformatCode>True</XMLReformatCode><CSUpdateFileHeader>True</CSUpdateFileHeader><CSharpFormatDocComments>True</CSharpFormatDocComments><RemoveCodeRedundancies>True</RemoveCodeRedundancies><CSMakeAutoPropertyGetOnly>True</CSMakeAutoPropertyGetOnly><CSArrangeQualifiers>True</CSArrangeQualifiers><CSEnforceVarKeywordUsageSettings>True</CSEnforceVarKeywordUsageSettings><CSFixBuiltinTypeReferences>True</CSFixBuiltinTypeReferences><CSCodeStyleAttributes ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" RemoveRedundantParentheses="False" AddMissingParentheses="False" ArrangeBraces="False" ArrangeAttributes="True" ArrangeArgumentsStyle="False" /><IDEA_SETTINGS><profile version="1.0">
+ <option name="myName" value="EntityFramework" />
+ <inspection_tool class="ES6ShorthandObjectProperty" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="JSArrowFunctionBracesCanBeRemoved" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="JSPrimitiveTypeWrapperUsage" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="JSRemoveUnnecessaryParentheses" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="JSUnnecessarySemicolon" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="TypeScriptExplicitMemberType" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="UnnecessaryContinueJS" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="UnnecessaryLabelJS" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="UnnecessaryLabelOnBreakStatementJS" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="UnnecessaryLabelOnContinueStatementJS" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="UnnecessaryReturnJS" enabled="false" level="WARNING" enabled_by_default="false" />
+ <inspection_tool class="WrongPropertyKeyValueDelimiter" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
+</profile></IDEA_SETTINGS><RIDER_SETTINGS><profile>
+ <Language id="CSS">
+ <Reformat>false</Reformat>
+ <Rearrange>false</Rearrange>
+ </Language>
+ <Language id="EditorConfig">
+ <Reformat>false</Reformat>
+ </Language>
+ <Language id="HTML">
+ <OptimizeImports>false</OptimizeImports>
+ <Reformat>false</Reformat>
+ <Rearrange>false</Rearrange>
+ </Language>
+ <Language id="HTTP Request">
+ <Reformat>true</Reformat>
+ </Language>
+ <Language id="Handlebars">
+ <Reformat>true</Reformat>
+ </Language>
+ <Language id="Ini">
+ <Reformat>false</Reformat>
+ </Language>
+ <Language id="JSON">
+ <Reformat>false</Reformat>
+ </Language>
+ <Language id="Jade">
+ <Reformat>true</Reformat>
+ </Language>
+ <Language id="JavaScript">
+ <OptimizeImports>false</OptimizeImports>
+ <Reformat>false</Reformat>
+ <Rearrange>false</Rearrange>
+ </Language>
+ <Language id="Markdown">
+ <Reformat>false</Reformat>
+ </Language>
+ <Language id="Properties">
+ <Reformat>false</Reformat>
+ </Language>
+ <Language id="RELAX-NG">
+ <Reformat>true</Reformat>
+ </Language>
+ <Language id="SQL">
+ <Reformat>true</Reformat>
+ </Language>
+ <Language id="XML">
+ <OptimizeImports>false</OptimizeImports>
+ <Reformat>false</Reformat>
+ <Rearrange>false</Rearrange>
+ </Language>
+ <Language id="yaml">
+ <Reformat>false</Reformat>
+ </Language>
+</profile></RIDER_SETTINGS></Profile>EntityFrameworkEntityFramework
@@ -75,6 +142,7 @@
2NEVERFalse
+ ALWAYSNEVERNEVERFalse
diff --git a/src/EFCore/ChangeTracking/ChangeTracker.cs b/src/EFCore/ChangeTracking/ChangeTracker.cs
index ed70c049c9f..725d39f74b4 100644
--- a/src/EFCore/ChangeTracking/ChangeTracker.cs
+++ b/src/EFCore/ChangeTracking/ChangeTracker.cs
@@ -279,16 +279,16 @@ public virtual void TrackGraph(
rootEntity,
callback,
n =>
- {
- if (n.Entry.State != EntityState.Detached)
{
- return false;
- }
+ if (n.Entry.State != EntityState.Detached)
+ {
+ return false;
+ }
- n.NodeState!(n);
+ n.NodeState!(n);
- return n.Entry.State != EntityState.Detached;
- });
+ return n.Entry.State != EntityState.Detached;
+ });
///
///
@@ -457,7 +457,7 @@ public virtual void Clear()
public virtual DebugView DebugView
=> new(
() => this.ToDebugString(ChangeTrackerDebugStringOptions.ShortDefault),
- () => this.ToDebugString(ChangeTrackerDebugStringOptions.LongDefault));
+ () => this.ToDebugString());
#region Hidden System.Object members
diff --git a/src/EFCore/ChangeTracking/CollectionEntry.cs b/src/EFCore/ChangeTracking/CollectionEntry.cs
index d716ea534b6..411f476bd36 100644
--- a/src/EFCore/ChangeTracking/CollectionEntry.cs
+++ b/src/EFCore/ChangeTracking/CollectionEntry.cs
@@ -248,7 +248,7 @@ public override void Load()
///
/// A to observe while waiting for the task to complete.
/// A task that represents the asynchronous save operation.
- /// If the is canceled.
+ /// If the is canceled.
public override Task LoadAsync(CancellationToken cancellationToken = default)
{
EnsureInitialized();
diff --git a/src/EFCore/ChangeTracking/EntityEntry.cs b/src/EFCore/ChangeTracking/EntityEntry.cs
index 2e553d46139..bc78e0ecc84 100644
--- a/src/EFCore/ChangeTracking/EntityEntry.cs
+++ b/src/EFCore/ChangeTracking/EntityEntry.cs
@@ -162,7 +162,7 @@ public virtual MemberEntry Member(string propertyName)
if (navigation != null)
{
return navigation.IsCollection
- ? (MemberEntry)new CollectionEntry(InternalEntry, propertyName)
+ ? new CollectionEntry(InternalEntry, propertyName)
: new ReferenceEntry(InternalEntry, propertyName);
}
@@ -201,7 +201,7 @@ public virtual NavigationEntry Navigation(string propertyName)
if (navigation != null)
{
return navigation.IsCollection
- ? (NavigationEntry)new CollectionEntry(InternalEntry, propertyName)
+ ? new CollectionEntry(InternalEntry, propertyName)
: new ReferenceEntry(InternalEntry, propertyName);
}
@@ -399,7 +399,7 @@ public virtual PropertyValues OriginalValues
///
///
/// Queries the database for copies of the values of the tracked entity as they currently
- /// exist in the database. If the entity is not found in the database, then is returned.
+ /// exist in the database. If the entity is not found in the database, then is returned.
///
///
/// Note that changing the values in the returned dictionary will not update the values
@@ -409,7 +409,7 @@ public virtual PropertyValues OriginalValues
///
/// See Accessing tracked entities in EF Core for more information.
///
- /// The store values, or if the entity does not exist in the database.
+ /// The store values, or if the entity does not exist in the database.
public virtual PropertyValues? GetDatabaseValues()
{
var values = Finder.GetDatabaseValues(InternalEntry);
@@ -439,7 +439,7 @@ public virtual PropertyValues OriginalValues
/// A task that represents the asynchronous operation. The task result contains the store values,
/// or if the entity does not exist in the database.
///
- /// If the is canceled.
+ /// If the is canceled.
public virtual async Task GetDatabaseValuesAsync(CancellationToken cancellationToken = default)
{
var values = await Finder.GetDatabaseValuesAsync(InternalEntry, cancellationToken).ConfigureAwait(false);
@@ -482,7 +482,7 @@ public virtual void Reload()
///
/// A to observe while waiting for the task to complete.
/// A task that represents the asynchronous operation.
- /// If the is canceled.
+ /// If the is canceled.
public virtual async Task ReloadAsync(CancellationToken cancellationToken = default)
=> Reload(await GetDatabaseValuesAsync(cancellationToken).ConfigureAwait(false));
@@ -530,7 +530,7 @@ public override string ToString()
public virtual DebugView DebugView
=> new(
() => InternalEntry.ToDebugString(ChangeTrackerDebugStringOptions.ShortDefault),
- () => InternalEntry.ToDebugString(ChangeTrackerDebugStringOptions.LongDefault));
+ () => InternalEntry.ToDebugString());
#region Hidden System.Object members
diff --git a/src/EFCore/ChangeTracking/EntityEntryGraphNode.cs b/src/EFCore/ChangeTracking/EntityEntryGraphNode.cs
index fa513a1ce36..69547e90f8d 100644
--- a/src/EFCore/ChangeTracking/EntityEntryGraphNode.cs
+++ b/src/EFCore/ChangeTracking/EntityEntryGraphNode.cs
@@ -7,7 +7,6 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Utilities;
-
namespace Microsoft.EntityFrameworkCore.ChangeTracking
{
///
diff --git a/src/EFCore/ChangeTracking/GeometryValueComparer.cs b/src/EFCore/ChangeTracking/GeometryValueComparer.cs
index 924714897da..371914e9bcd 100644
--- a/src/EFCore/ChangeTracking/GeometryValueComparer.cs
+++ b/src/EFCore/ChangeTracking/GeometryValueComparer.cs
@@ -52,7 +52,7 @@ public GeometryValueComparer()
Expression.IsFalse(yNull),
Expression.Call(
x,
- typeof(TGeometry).GetRequiredRuntimeMethod("EqualsExact", new[] { typeof(TGeometry) }),
+ typeof(TGeometry).GetRequiredRuntimeMethod("EqualsExact", typeof(TGeometry)),
y))))),
left,
right);
diff --git a/src/EFCore/ChangeTracking/IEntityEntryGraphIterator.cs b/src/EFCore/ChangeTracking/IEntityEntryGraphIterator.cs
index 228432bd5c5..e548da6df69 100644
--- a/src/EFCore/ChangeTracking/IEntityEntryGraphIterator.cs
+++ b/src/EFCore/ChangeTracking/IEntityEntryGraphIterator.cs
@@ -41,7 +41,7 @@ void TraverseGraph(
/// A to observe while waiting for the task to complete.
/// The type of the state object.
/// A task that represents the asynchronous operation.
- /// If the is canceled.
+ /// If the is canceled.
Task TraverseGraphAsync(
EntityEntryGraphNode node,
Func, CancellationToken, Task> handleNode,
diff --git a/src/EFCore/ChangeTracking/Internal/CompositePrincipalKeyValueFactory.cs b/src/EFCore/ChangeTracking/Internal/CompositePrincipalKeyValueFactory.cs
index f938ef59447..accf0b19bb8 100644
--- a/src/EFCore/ChangeTracking/Internal/CompositePrincipalKeyValueFactory.cs
+++ b/src/EFCore/ChangeTracking/Internal/CompositePrincipalKeyValueFactory.cs
@@ -117,6 +117,7 @@ private object[] CreateFromEntry(
{
return default!;
}
+
values[index++] = value;
}
diff --git a/src/EFCore/ChangeTracking/Internal/CompositeValueFactory.cs b/src/EFCore/ChangeTracking/Internal/CompositeValueFactory.cs
index 9a107689918..918d00bdaaf 100644
--- a/src/EFCore/ChangeTracking/Internal/CompositeValueFactory.cs
+++ b/src/EFCore/ChangeTracking/Internal/CompositeValueFactory.cs
@@ -10,7 +10,6 @@
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Update;
-
namespace Microsoft.EntityFrameworkCore.ChangeTracking.Internal
{
///
@@ -153,7 +152,7 @@ protected static IEqualityComparer
public void HandleNullForeignKey(
IProperty property,
- bool setModified = false,
+ bool setModified = false,
bool isCascadeDelete = false)
{
if (EntityState != EntityState.Deleted
@@ -1946,7 +1946,7 @@ public override string ToString()
public DebugView DebugView
=> new(
() => this.ToDebugString(ChangeTrackerDebugStringOptions.ShortDefault),
- () => this.ToDebugString(ChangeTrackerDebugStringOptions.LongDefault));
+ () => this.ToDebugString());
IUpdateEntry? IUpdateEntry.SharedIdentityEntry
=> SharedIdentityEntry;
diff --git a/src/EFCore/ChangeTracking/Internal/KeyPropagator.cs b/src/EFCore/ChangeTracking/Internal/KeyPropagator.cs
index 489cab1fd64..67414c2d9b9 100644
--- a/src/EFCore/ChangeTracking/Internal/KeyPropagator.cs
+++ b/src/EFCore/ChangeTracking/Internal/KeyPropagator.cs
@@ -64,7 +64,7 @@ public KeyPropagator(
generationProperty == property
? entry.EntityType
: generationProperty?.DeclaringEntityType);
-
+
if (valueGenerator != null)
{
var value = valueGenerator.Next(new EntityEntry(entry));
@@ -112,7 +112,7 @@ public KeyPropagator(
generationProperty == property
? entry.EntityType
: generationProperty?.DeclaringEntityType);
-
+
if (valueGenerator != null)
{
var value = await valueGenerator.NextAsync(new EntityEntry(entry), cancellationToken)
diff --git a/src/EFCore/ChangeTracking/Internal/NavigationFixer.cs b/src/EFCore/ChangeTracking/Internal/NavigationFixer.cs
index bb1d66c3f91..37271183dd1 100644
--- a/src/EFCore/ChangeTracking/Internal/NavigationFixer.cs
+++ b/src/EFCore/ChangeTracking/Internal/NavigationFixer.cs
@@ -340,8 +340,8 @@ public virtual void NavigationCollectionChanged(
if (navigationBase is ISkipNavigation skipNavigation)
{
- FindOrCreateJoinEntry((
- entry, newTargetEntry, skipNavigation, FromQuery: false, SetModified: true));
+ FindOrCreateJoinEntry(
+ (entry, newTargetEntry, skipNavigation, FromQuery: false, SetModified: true));
Check.DebugAssert(
skipNavigation.Inverse.IsCollection,
@@ -757,7 +757,7 @@ private void InitialFixup(
{
var toDependent = foreignKey.PrincipalToDependent;
if (CanOverrideCurrentValue(entry, toDependent, dependentEntry, fromQuery)
- && !IsAmbiguous(dependentEntry))
+ && !IsAmbiguous(dependentEntry))
{
SetNavigation(entry, toDependent, dependentEntry, fromQuery);
SetNavigation(dependentEntry, foreignKey.DependentToPrincipal, entry, fromQuery);
@@ -917,10 +917,10 @@ private void InitialFixup(
private static bool IsAmbiguous(InternalEntityEntry dependentEntry)
=> (dependentEntry.EntityState == EntityState.Detached
- || dependentEntry.EntityState == EntityState.Deleted)
+ || dependentEntry.EntityState == EntityState.Deleted)
&& (dependentEntry.SharedIdentityEntry != null
|| dependentEntry.EntityType.HasSharedClrType
- && dependentEntry.StateManager.TryGetEntry(dependentEntry.Entity, throwOnNonUniqueness: false) != dependentEntry);
+ && dependentEntry.StateManager.TryGetEntry(dependentEntry.Entity, throwOnNonUniqueness: false) != dependentEntry);
private void DelayedFixup(
InternalEntityEntry entry,
@@ -990,16 +990,19 @@ private void FixupSkipNavigations(InternalEntityEntry entry, IForeignKey foreign
private void FindOrCreateJoinEntry(
(InternalEntityEntry Entry,
- InternalEntityEntry OtherEntry,
- ISkipNavigation SkipNavigation,
- bool FromQuery,
- bool SetModified) arguments)
+ InternalEntityEntry OtherEntry,
+ ISkipNavigation SkipNavigation,
+ bool FromQuery,
+ bool SetModified) arguments)
{
var joinEntry = FindJoinEntry(arguments.Entry, arguments.OtherEntry, arguments.SkipNavigation);
if (joinEntry != null)
{
- SetForeignKeyProperties(joinEntry, arguments.Entry, arguments.SkipNavigation.ForeignKey, arguments.SetModified, arguments.FromQuery);
- SetForeignKeyProperties(joinEntry, arguments.OtherEntry, arguments.SkipNavigation.Inverse.ForeignKey, arguments.SetModified, arguments.FromQuery);
+ SetForeignKeyProperties(
+ joinEntry, arguments.Entry, arguments.SkipNavigation.ForeignKey, arguments.SetModified, arguments.FromQuery);
+ SetForeignKeyProperties(
+ joinEntry, arguments.OtherEntry, arguments.SkipNavigation.Inverse.ForeignKey, arguments.SetModified,
+ arguments.FromQuery);
}
else if (!_inAttachGraph)
{
@@ -1009,8 +1012,11 @@ private void FindOrCreateJoinEntry(
joinEntry = arguments.Entry.StateManager.GetOrCreateEntry(joinEntity, joinEntityType);
- SetForeignKeyProperties(joinEntry, arguments.Entry, arguments.SkipNavigation.ForeignKey, arguments.SetModified, arguments.FromQuery);
- SetForeignKeyProperties(joinEntry, arguments.OtherEntry, arguments.SkipNavigation.Inverse.ForeignKey, arguments.SetModified, arguments.FromQuery);
+ SetForeignKeyProperties(
+ joinEntry, arguments.Entry, arguments.SkipNavigation.ForeignKey, arguments.SetModified, arguments.FromQuery);
+ SetForeignKeyProperties(
+ joinEntry, arguments.OtherEntry, arguments.SkipNavigation.Inverse.ForeignKey, arguments.SetModified,
+ arguments.FromQuery);
joinEntry.SetEntityState(
arguments.SetModified
@@ -1022,7 +1028,7 @@ private void FindOrCreateJoinEntry(
else
{
_danglingJoinEntities ??= new List();
-
+
_danglingJoinEntities.Add(() => FindOrCreateJoinEntry(arguments));
}
}
@@ -1332,14 +1338,19 @@ private void ConditionallyNullForeignKeyProperties(
break;
case EntityState.Unchanged:
case EntityState.Modified:
- dependentEntry.SetEntityState(dependentEntry.SharedIdentityEntry != null ? EntityState.Detached : EntityState.Deleted);
+ dependentEntry.SetEntityState(
+ dependentEntry.SharedIdentityEntry != null ? EntityState.Detached : EntityState.Deleted);
DeleteFixup(dependentEntry);
break;
}
}
}
- private static bool CanOverrideCurrentValue(InternalEntityEntry entry, INavigationBase? navigation, InternalEntityEntry value, bool fromQuery)
+ private static bool CanOverrideCurrentValue(
+ InternalEntityEntry entry,
+ INavigationBase? navigation,
+ InternalEntityEntry value,
+ bool fromQuery)
{
if (fromQuery)
{
diff --git a/src/EFCore/ChangeTracking/Internal/SimpleFullyNullableDependentKeyValueFactory.cs b/src/EFCore/ChangeTracking/Internal/SimpleFullyNullableDependentKeyValueFactory.cs
index 0567dcb4fee..681abeba243 100644
--- a/src/EFCore/ChangeTracking/Internal/SimpleFullyNullableDependentKeyValueFactory.cs
+++ b/src/EFCore/ChangeTracking/Internal/SimpleFullyNullableDependentKeyValueFactory.cs
@@ -9,7 +9,6 @@
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Update;
-
namespace Microsoft.EntityFrameworkCore.ChangeTracking.Internal
{
///
diff --git a/src/EFCore/ChangeTracking/Internal/SimpleNonNullableDependentKeyValueFactory.cs b/src/EFCore/ChangeTracking/Internal/SimpleNonNullableDependentKeyValueFactory.cs
index 3138698091f..592ad2a5130 100644
--- a/src/EFCore/ChangeTracking/Internal/SimpleNonNullableDependentKeyValueFactory.cs
+++ b/src/EFCore/ChangeTracking/Internal/SimpleNonNullableDependentKeyValueFactory.cs
@@ -9,7 +9,6 @@
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Update;
-
namespace Microsoft.EntityFrameworkCore.ChangeTracking.Internal
{
///
diff --git a/src/EFCore/ChangeTracking/Internal/SimpleNullablePrincipalDependentKeyValueFactory.cs b/src/EFCore/ChangeTracking/Internal/SimpleNullablePrincipalDependentKeyValueFactory.cs
index b1a535e310f..f815cf36468 100644
--- a/src/EFCore/ChangeTracking/Internal/SimpleNullablePrincipalDependentKeyValueFactory.cs
+++ b/src/EFCore/ChangeTracking/Internal/SimpleNullablePrincipalDependentKeyValueFactory.cs
@@ -9,7 +9,6 @@
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Update;
-
namespace Microsoft.EntityFrameworkCore.ChangeTracking.Internal
{
// The methods here box, but this is only used when the primary key is nullable, but the FK is non-nullable,
diff --git a/src/EFCore/ChangeTracking/Internal/SimplePrincipalKeyValueFactory.cs b/src/EFCore/ChangeTracking/Internal/SimplePrincipalKeyValueFactory.cs
index 839b54dd400..cc157b16e37 100644
--- a/src/EFCore/ChangeTracking/Internal/SimplePrincipalKeyValueFactory.cs
+++ b/src/EFCore/ChangeTracking/Internal/SimplePrincipalKeyValueFactory.cs
@@ -10,7 +10,6 @@
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.EntityFrameworkCore.Update;
-
namespace Microsoft.EntityFrameworkCore.ChangeTracking.Internal
{
///
@@ -41,7 +40,7 @@ public SimplePrincipalKeyValueFactory(IProperty property)
= comparer != null
? new NoNullsCustomEqualityComparer(comparer)
: typeof(IStructuralEquatable).IsAssignableFrom(typeof(TKey))
- ? (IEqualityComparer)new NoNullsStructuralEqualityComparer()
+ ? new NoNullsStructuralEqualityComparer()
: EqualityComparer.Default;
}
diff --git a/src/EFCore/ChangeTracking/Internal/Snapshot.cs b/src/EFCore/ChangeTracking/Internal/Snapshot.cs
index f27cb1cf853..b9a0bdb0cba 100644
--- a/src/EFCore/ChangeTracking/Internal/Snapshot.cs
+++ b/src/EFCore/ChangeTracking/Internal/Snapshot.cs
@@ -89,39 +89,39 @@ public static Delegate[] CreateReaders()
///
public static Type CreateSnapshotType(Type[] types)
=> types.Length switch
- {
- 1 => typeof(Snapshot<>).MakeGenericType(types),
- 2 => typeof(Snapshot<,>).MakeGenericType(types),
- 3 => typeof(Snapshot<,,>).MakeGenericType(types),
- 4 => typeof(Snapshot<,,,>).MakeGenericType(types),
- 5 => typeof(Snapshot<,,,,>).MakeGenericType(types),
- 6 => typeof(Snapshot<,,,,,>).MakeGenericType(types),
- 7 => typeof(Snapshot<,,,,,,>).MakeGenericType(types),
- 8 => typeof(Snapshot<,,,,,,,>).MakeGenericType(types),
- 9 => typeof(Snapshot<,,,,,,,,>).MakeGenericType(types),
- 10 => typeof(Snapshot<,,,,,,,,,>).MakeGenericType(types),
- 11 => typeof(Snapshot<,,,,,,,,,,>).MakeGenericType(types),
- 12 => typeof(Snapshot<,,,,,,,,,,,>).MakeGenericType(types),
- 13 => typeof(Snapshot<,,,,,,,,,,,,>).MakeGenericType(types),
- 14 => typeof(Snapshot<,,,,,,,,,,,,,>).MakeGenericType(types),
- 15 => typeof(Snapshot<,,,,,,,,,,,,,,>).MakeGenericType(types),
- 16 => typeof(Snapshot<,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 17 => typeof(Snapshot<,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 18 => typeof(Snapshot<,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 19 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 20 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 21 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 22 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 23 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 24 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 25 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 26 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 27 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 28 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 29 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- 30 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
- _ => throw new IndexOutOfRangeException(),
- };
+ {
+ 1 => typeof(Snapshot<>).MakeGenericType(types),
+ 2 => typeof(Snapshot<,>).MakeGenericType(types),
+ 3 => typeof(Snapshot<,,>).MakeGenericType(types),
+ 4 => typeof(Snapshot<,,,>).MakeGenericType(types),
+ 5 => typeof(Snapshot<,,,,>).MakeGenericType(types),
+ 6 => typeof(Snapshot<,,,,,>).MakeGenericType(types),
+ 7 => typeof(Snapshot<,,,,,,>).MakeGenericType(types),
+ 8 => typeof(Snapshot<,,,,,,,>).MakeGenericType(types),
+ 9 => typeof(Snapshot<,,,,,,,,>).MakeGenericType(types),
+ 10 => typeof(Snapshot<,,,,,,,,,>).MakeGenericType(types),
+ 11 => typeof(Snapshot<,,,,,,,,,,>).MakeGenericType(types),
+ 12 => typeof(Snapshot<,,,,,,,,,,,>).MakeGenericType(types),
+ 13 => typeof(Snapshot<,,,,,,,,,,,,>).MakeGenericType(types),
+ 14 => typeof(Snapshot<,,,,,,,,,,,,,>).MakeGenericType(types),
+ 15 => typeof(Snapshot<,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 16 => typeof(Snapshot<,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 17 => typeof(Snapshot<,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 18 => typeof(Snapshot<,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 19 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 20 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 21 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 22 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 23 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 24 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 25 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 26 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 27 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 28 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 29 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ 30 => typeof(Snapshot<,,,,,,,,,,,,,,,,,,,,,,,,,,,,,>).MakeGenericType(types),
+ _ => throw new IndexOutOfRangeException(),
+ };
}
///
@@ -5050,15 +5050,15 @@ public T GetValue(int index)
public object? this[int index]
{
get => index switch
- {
- 0 => _value0,
- _ => throw new IndexOutOfRangeException(),
- };
+ {
+ 0 => _value0,
+ _ => throw new IndexOutOfRangeException(),
+ };
set => _value0 = index switch
- {
- 0 => (T0)value!,
- _ => throw new IndexOutOfRangeException(),
- };
+ {
+ 0 => (T0)value!,
+ _ => throw new IndexOutOfRangeException(),
+ };
}
}
}
diff --git a/src/EFCore/ChangeTracking/Internal/SnapshotFactoryFactory.cs b/src/EFCore/ChangeTracking/Internal/SnapshotFactoryFactory.cs
index aca7852abfe..a39f65bb3d5 100644
--- a/src/EFCore/ChangeTracking/Internal/SnapshotFactoryFactory.cs
+++ b/src/EFCore/ChangeTracking/Internal/SnapshotFactoryFactory.cs
@@ -33,8 +33,8 @@ public virtual Func CreateEmpty(IEntityType entityType)
return GetPropertyCount(entityType) == 0
? (() => Snapshot.Empty)
: Expression.Lambda>(
- // TODO-Nullable: This whole code path is null unsafe. We are passing null parameter but later using parameter
- // as if always exists.
+ // TODO-Nullable: This whole code path is null unsafe. We are passing null parameter but later using parameter
+ // as if always exists.
CreateConstructorExpression(entityType, null!))
.Compile();
}
diff --git a/src/EFCore/ChangeTracking/Internal/StateManager.cs b/src/EFCore/ChangeTracking/Internal/StateManager.cs
index 9225ffa4668..948068ef400 100644
--- a/src/EFCore/ChangeTracking/Internal/StateManager.cs
+++ b/src/EFCore/ChangeTracking/Internal/StateManager.cs
@@ -82,6 +82,7 @@ public StateManager(StateManagerDependencies dependencies)
UpdateLogger = dependencies.UpdateLogger;
_changeTrackingLogger = dependencies.ChangeTrackingLogger;
}
+
///
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
@@ -731,7 +732,7 @@ public virtual void BeginAttachGraph()
///
public virtual void CompleteAttachGraph()
=> Dependencies.NavigationFixer.CompleteAttachGraph();
-
+
///
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
/// the same compatibility standards as public APIs. It may be changed or removed without notice in
@@ -1175,9 +1176,10 @@ protected virtual async Task SaveChangesAsync(
public virtual int SaveChanges(bool acceptAllChangesOnSuccess)
=> !Context.Database.AutoTransactionsEnabled
? SaveChanges(this, acceptAllChangesOnSuccess)
- : Dependencies.ExecutionStrategy.Execute((StateManager: this, AcceptAllChangesOnSuccess: acceptAllChangesOnSuccess),
- static (_, t) => SaveChanges(t.StateManager, t.AcceptAllChangesOnSuccess),
- null);
+ : Dependencies.ExecutionStrategy.Execute(
+ (StateManager: this, AcceptAllChangesOnSuccess: acceptAllChangesOnSuccess),
+ static (_, t) => SaveChanges(t.StateManager, t.AcceptAllChangesOnSuccess),
+ null);
private static int SaveChanges(StateManager stateManager, bool acceptAllChangesOnSuccess)
{
diff --git a/src/EFCore/ChangeTracking/Internal/ValueGenerationManager.cs b/src/EFCore/ChangeTracking/Internal/ValueGenerationManager.cs
index 84d07c99394..168f90dbe4b 100644
--- a/src/EFCore/ChangeTracking/Internal/ValueGenerationManager.cs
+++ b/src/EFCore/ChangeTracking/Internal/ValueGenerationManager.cs
@@ -191,9 +191,9 @@ private static void SetGeneratedValue(InternalEntityEntry entry, IProperty prope
}
private static void MarkKeyUnknown(
- InternalEntityEntry entry,
- bool includePrimaryKey,
- IProperty property,
+ InternalEntityEntry entry,
+ bool includePrimaryKey,
+ IProperty property,
ValueGenerator valueGenerator)
{
if (includePrimaryKey
diff --git a/src/EFCore/ChangeTracking/NavigationEntry.cs b/src/EFCore/ChangeTracking/NavigationEntry.cs
index 831e236a85f..cbec6fae20f 100644
--- a/src/EFCore/ChangeTracking/NavigationEntry.cs
+++ b/src/EFCore/ChangeTracking/NavigationEntry.cs
@@ -127,7 +127,7 @@ private static INavigationBase GetNavigation(InternalEntityEntry internalEntry,
///
/// A to observe while waiting for the task to complete.
/// A task that represents the asynchronous operation.
- /// If the is canceled.
+ /// If the is canceled.
public abstract Task LoadAsync(CancellationToken cancellationToken = default);
///
diff --git a/src/EFCore/ChangeTracking/ReferenceEntry.cs b/src/EFCore/ChangeTracking/ReferenceEntry.cs
index d877302961d..c7d6bc93459 100644
--- a/src/EFCore/ChangeTracking/ReferenceEntry.cs
+++ b/src/EFCore/ChangeTracking/ReferenceEntry.cs
@@ -122,7 +122,7 @@ public override void Load()
///
/// A to observe while waiting for the task to complete.
/// A task that represents the asynchronous operation.
- /// If the is canceled.
+ /// If the is canceled.
public override Task LoadAsync(CancellationToken cancellationToken = default)
=> IsLoaded
? Task.CompletedTask
diff --git a/src/EFCore/ChangeTracking/ValueComparer.cs b/src/EFCore/ChangeTracking/ValueComparer.cs
index 9d0fce6103e..d336fc5a05c 100644
--- a/src/EFCore/ChangeTracking/ValueComparer.cs
+++ b/src/EFCore/ChangeTracking/ValueComparer.cs
@@ -5,7 +5,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
-using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using Microsoft.EntityFrameworkCore.Query;
@@ -33,22 +32,22 @@ namespace Microsoft.EntityFrameworkCore.ChangeTracking
public abstract class ValueComparer : IEqualityComparer, IEqualityComparer
{
private static readonly MethodInfo _doubleEqualsMethodInfo
- = typeof(double).GetRequiredRuntimeMethod(nameof(double.Equals), new[] { typeof(double) });
+ = typeof(double).GetRequiredRuntimeMethod(nameof(double.Equals), typeof(double));
private static readonly MethodInfo _floatEqualsMethodInfo
- = typeof(float).GetRequiredRuntimeMethod(nameof(float.Equals), new[] { typeof(float) });
+ = typeof(float).GetRequiredRuntimeMethod(nameof(float.Equals), typeof(float));
internal static readonly MethodInfo ArrayCopyMethod
- = typeof(Array).GetRequiredRuntimeMethod(nameof(Array.Copy), new[] { typeof(Array), typeof(Array), typeof(int) });
+ = typeof(Array).GetRequiredRuntimeMethod(nameof(Array.Copy), typeof(Array), typeof(Array), typeof(int));
internal static readonly MethodInfo EqualityComparerHashCodeMethod
- = typeof(IEqualityComparer).GetRequiredRuntimeMethod(nameof(IEqualityComparer.GetHashCode), new[] { typeof(object) });
+ = typeof(IEqualityComparer).GetRequiredRuntimeMethod(nameof(IEqualityComparer.GetHashCode), typeof(object));
internal static readonly MethodInfo EqualityComparerEqualsMethod
- = typeof(IEqualityComparer).GetRequiredRuntimeMethod(nameof(IEqualityComparer.Equals), new[] { typeof(object), typeof(object) });
+ = typeof(IEqualityComparer).GetRequiredRuntimeMethod(nameof(IEqualityComparer.Equals), typeof(object), typeof(object));
internal static readonly MethodInfo ObjectEqualsMethod
- = typeof(object).GetRequiredRuntimeMethod(nameof(object.Equals), new[] { typeof(object), typeof(object) });
+ = typeof(object).GetRequiredRuntimeMethod(nameof(object.Equals), typeof(object), typeof(object));
internal static readonly MethodInfo ObjectGetHashCodeMethod
= typeof(object).GetRequiredRuntimeMethod(nameof(object.GetHashCode), Type.EmptyTypes);
diff --git a/src/EFCore/ChangeTracking/ValueComparer`.cs b/src/EFCore/ChangeTracking/ValueComparer`.cs
index 422d00a7bc0..5f0e6b3bf3a 100644
--- a/src/EFCore/ChangeTracking/ValueComparer`.cs
+++ b/src/EFCore/ChangeTracking/ValueComparer`.cs
@@ -26,7 +26,7 @@ namespace Microsoft.EntityFrameworkCore.ChangeTracking
///
///
///
- /// See EF Core value comparers for more information.
+ /// See EF Core value comparers for more information.
///
/// The type.
public class ValueComparer : ValueComparer, IEqualityComparer
diff --git a/src/EFCore/DbContext.cs b/src/EFCore/DbContext.cs
index c4f45e3df03..e2a7d71cb03 100644
--- a/src/EFCore/DbContext.cs
+++ b/src/EFCore/DbContext.cs
@@ -55,7 +55,7 @@ namespace Microsoft.EntityFrameworkCore
///
///
/// See DbContext lifetime, configuration, and initialization,
- /// Querying data with EF Core,
+ /// Querying data with EF Core,
/// Changing tracking, and
/// Saving data with EF Core for more information.
///
@@ -323,7 +323,7 @@ object IDbSetCache.GetOrAddSet(IDbSetSource source, string entityTypeName, Type
///
///
///
- /// See Querying data with EF Core and
+ /// See Querying data with EF Core and
/// Changing tracking for more information.
///
/// The type of entity for which a set should be returned.
@@ -342,7 +342,7 @@ public virtual DbSet Set()
///
///
///
- /// See Querying data with EF Core,
+ /// See Querying data with EF Core,
/// Changing tracking, and
/// Shared entity types for more information.
///
@@ -487,7 +487,7 @@ protected internal virtual void OnConfiguring(DbContextOptionsBuilder optionsBui
///
/// Override this method to set defaults and configure conventions before they run. This method is invoked before
- /// .
+ /// .
///
///
/// If a model is explicitly set on the options for this context (via )
@@ -2141,6 +2141,7 @@ public virtual IQueryable FromExpression(Expression
/// Returns a string that represents the current object.
///
@@ -2165,6 +2166,7 @@ public override bool Equals(object? obj)
[EditorBrowsable(EditorBrowsableState.Never)]
public override int GetHashCode()
=> base.GetHashCode();
+
#endregion
}
}
diff --git a/src/EFCore/DbContextOptionsBuilder.cs b/src/EFCore/DbContextOptionsBuilder.cs
index e13d3806711..2bc53da90c2 100644
--- a/src/EFCore/DbContextOptionsBuilder.cs
+++ b/src/EFCore/DbContextOptionsBuilder.cs
@@ -120,7 +120,7 @@ public virtual DbContextOptionsBuilder UseLoggerFactory(ILoggerFactory? loggerFa
/// This overload allows the minimum level of logging and the log formatting to be controlled.
/// Use the
///
+ /// cref="LogTo(Action{string},System.Collections.Generic.IEnumerable{Microsoft.Extensions.Logging.EventId},LogLevel,DbContextLoggerOptions?)" />
/// overload to log only specific events.
/// Use the
/// overload to log only events in specific categories.
@@ -251,20 +251,20 @@ public virtual DbContextOptionsBuilder LogTo(
return LogTo(
action,
(eventId, level) =>
- {
- if (level >= minimumLevel)
{
- for (var i = 0; i < categoriesArray.Length; i++)
+ if (level >= minimumLevel)
{
- if (eventId.Name!.StartsWith(categoriesArray[i], StringComparison.OrdinalIgnoreCase))
+ for (var i = 0; i < categoriesArray.Length; i++)
{
- return true;
+ if (eventId.Name!.StartsWith(categoriesArray[i], StringComparison.OrdinalIgnoreCase))
+ {
+ return true;
+ }
}
}
- }
- return false;
- },
+ return false;
+ },
options);
}
diff --git a/src/EFCore/DbContextOptionsBuilder`.cs b/src/EFCore/DbContextOptionsBuilder`.cs
index 9491456185d..879294f092d 100644
--- a/src/EFCore/DbContextOptionsBuilder`.cs
+++ b/src/EFCore/DbContextOptionsBuilder`.cs
@@ -96,7 +96,7 @@ public DbContextOptionsBuilder(DbContextOptions options)
/// This overload allows the minimum level of logging and the log formatting to be controlled.
/// Use the
///
+ /// cref="LogTo(Action{string},System.Collections.Generic.IEnumerable{Microsoft.Extensions.Logging.EventId},LogLevel,DbContextLoggerOptions?)" />
/// overload to log only specific events.
/// Use the
/// overload to log only events in specific categories.
diff --git a/src/EFCore/DbSet.cs b/src/EFCore/DbSet.cs
index f576491978b..d4ed3838a58 100644
--- a/src/EFCore/DbSet.cs
+++ b/src/EFCore/DbSet.cs
@@ -44,7 +44,7 @@ namespace Microsoft.EntityFrameworkCore
///
///
///
- /// See DbContext lifetime, configuration, and initialization,
+ /// See DbContext lifetime, configuration, and initialization,
/// Querying data with EF Core, and
/// Changing tracking for more information.
///
@@ -154,7 +154,7 @@ public virtual LocalView Local
/// The values of the primary key for the entity to be found.
/// A to observe while waiting for the task to complete.
/// The entity found, or .
- /// If the is canceled.
+ /// If the is canceled.
public virtual ValueTask FindAsync(object?[]? keyValues, CancellationToken cancellationToken)
=> throw new NotSupportedException();
@@ -204,7 +204,7 @@ public virtual EntityEntry Add(TEntity entity)
/// for the entity. The entry provides access to change tracking
/// information and operations for the entity.
///
- /// If the is canceled.
+ /// If the is canceled.
public virtual ValueTask> AddAsync(
TEntity entity,
CancellationToken cancellationToken = default)
@@ -491,7 +491,7 @@ public virtual void AddRange(IEnumerable entities)
/// The entities to add.
/// A to observe while waiting for the task to complete.
/// A task that represents the asynchronous operation.
- /// If the is canceled.
+ /// If the is canceled.
public virtual Task AddRangeAsync(
IEnumerable entities,
CancellationToken cancellationToken = default)
diff --git a/src/EFCore/Design/EntityFrameworkDesignServicesBuilder.cs b/src/EFCore/Design/EntityFrameworkDesignServicesBuilder.cs
index 053afce5f4d..39c7e3049e5 100644
--- a/src/EFCore/Design/EntityFrameworkDesignServicesBuilder.cs
+++ b/src/EFCore/Design/EntityFrameworkDesignServicesBuilder.cs
@@ -46,7 +46,8 @@ public class EntityFrameworkDesignServicesBuilder : EntityFrameworkServicesBuild
///
[EntityFrameworkInternal]
public static readonly IDictionary Services
- = new Dictionary{
+ = new Dictionary
+ {
{ typeof(IDbContextLogger), new ServiceCharacteristics(ServiceLifetime.Singleton) },
{ typeof(IDiagnosticsLogger<>), new ServiceCharacteristics(ServiceLifetime.Singleton) },
{ typeof(ICSharpRuntimeAnnotationCodeGenerator), new ServiceCharacteristics(ServiceLifetime.Singleton) }
@@ -66,7 +67,7 @@ public EntityFrameworkDesignServicesBuilder(IServiceCollection serviceCollection
/// Gets the for the given service type.
///
/// The type that defines the service API.
- /// The for the type or if it's not an EF service.
+ /// The for the type or if it's not an EF service.
protected override ServiceCharacteristics? TryGetServiceCharacteristics(Type serviceType)
=> Services.TryGetValue(serviceType, out var characteristics)
? characteristics
diff --git a/src/EFCore/Design/ICSharpHelper.cs b/src/EFCore/Design/ICSharpHelper.cs
index 045cefffa01..4eb7fa4d531 100644
--- a/src/EFCore/Design/ICSharpHelper.cs
+++ b/src/EFCore/Design/ICSharpHelper.cs
@@ -34,8 +34,8 @@ public interface ICSharpHelper
/// The base identifier name.
/// A list of in-scope identifiers.
///
- /// if the first letter should be converted to uppercase;
- /// if the first letter should be converted to lowercase;
+ /// if the first letter should be converted to uppercase;
+ /// if the first letter should be converted to lowercase;
///
/// The identifier.
string Identifier(string name, ICollection? scope = null, bool? capitalize = null);
@@ -207,7 +207,7 @@ string Literal(T? value)
string Literal(ushort value);
///
- /// Generates a literal.
+ /// Generates a literal.
///
/// The value.
/// Whether the type should be namespace-qualified.
diff --git a/src/EFCore/Design/Internal/CSharpRuntimeAnnotationCodeGeneratorParameters.cs b/src/EFCore/Design/Internal/CSharpRuntimeAnnotationCodeGeneratorParameters.cs
index 7e3ef64b9b1..293a6922f48 100644
--- a/src/EFCore/Design/Internal/CSharpRuntimeAnnotationCodeGeneratorParameters.cs
+++ b/src/EFCore/Design/Internal/CSharpRuntimeAnnotationCodeGeneratorParameters.cs
@@ -69,7 +69,7 @@ public CSharpRuntimeAnnotationCodeGeneratorParameters(
public IndentedStringBuilder MethodBuilder { get; init; }
///
- /// A collection of namespaces for generation.
+ /// A collection of namespaces for generation.
///
public ISet Namespaces { get; init; }
diff --git a/src/EFCore/Diagnostics/CollectionChangedEventData.cs b/src/EFCore/Diagnostics/CollectionChangedEventData.cs
index 6cbf1c1c2cf..562f3af74a0 100644
--- a/src/EFCore/Diagnostics/CollectionChangedEventData.cs
+++ b/src/EFCore/Diagnostics/CollectionChangedEventData.cs
@@ -55,7 +55,8 @@ public CollectionChangedEventData(
///
/// The navigation.
///
- public new virtual INavigation Navigation => (INavigation)base.Navigation;
+ public new virtual INavigation Navigation
+ => (INavigation)base.Navigation;
///
/// The entities added to the collection.
diff --git a/src/EFCore/Diagnostics/CoreEventId.cs b/src/EFCore/Diagnostics/CoreEventId.cs
index 6944abf56a4..29afbccd3fa 100644
--- a/src/EFCore/Diagnostics/CoreEventId.cs
+++ b/src/EFCore/Diagnostics/CoreEventId.cs
@@ -296,7 +296,8 @@ public static readonly EventId FirstWithoutOrderByAndFilterWarning
///
///
- /// The query uses the 'Distinct' operator after applying an ordering. If there are any row limiting operation used before `Distinct` and after ordering then ordering will be used for it.
+ /// The query uses the 'Distinct' operator after applying an ordering. If there are any row limiting operation used before `Distinct`
+ /// and after ordering then ordering will be used for it.
/// Ordering(s) will be erased after `Distinct` and results afterwards would be unordered.
///
///
diff --git a/src/EFCore/Diagnostics/CoreLoggerExtensions.cs b/src/EFCore/Diagnostics/CoreLoggerExtensions.cs
index 3e232a0a3ea..91279870685 100644
--- a/src/EFCore/Diagnostics/CoreLoggerExtensions.cs
+++ b/src/EFCore/Diagnostics/CoreLoggerExtensions.cs
@@ -81,7 +81,7 @@ public static void SaveChangesFailed(
/// The exception that caused this event.
/// A to observe while waiting for the task to complete.
/// A for the async result.
- /// If the is canceled.
+ /// If the is canceled.
public static Task SaveChangesFailedAsync(
this IDiagnosticsLogger diagnostics,
DbContext context,
@@ -199,8 +199,8 @@ private static string OldModelVersion(EventDefinitionBase definition, EventData
var p = (ContextInitializedEventData)payload;
var modelVersion = p.ContextOptions.FindExtension()?.Model?.GetProductVersion() ?? "";
return d.GenerateMessage(
- modelVersion,
- ProductInfo.GetVersion());
+ modelVersion,
+ ProductInfo.GetVersion());
}
///
@@ -211,7 +211,7 @@ private static string OldModelVersion(EventDefinitionBase definition, EventData
/// The exception that caused this event.
/// A to observe while waiting for the task to complete.
/// A for the async result.
- /// If the is canceled.
+ /// If the is canceled.
public static Task OptimisticConcurrencyExceptionAsync(
this IDiagnosticsLogger diagnostics,
DbContext context,
@@ -927,7 +927,7 @@ private static string ContextInitialized(EventDefinitionBase definition, EventDa
GetProviderVersion(p.Context),
p.ContextOptions.BuildOptionsFragment());
}
-
+
private static string? GetProviderVersion(DbContext context)
=> context.GetService>().FirstOrDefault()?.Version;
@@ -3148,7 +3148,8 @@ private static string CascadeDeleteSensitive(EventDefinitionBase definition, Eve
p.EntityEntry.GetInfrastructure().BuildCurrentValuesString(p.EntityEntry.Metadata.FindPrimaryKey()!.Properties),
p.State,
p.ParentEntityEntry.Metadata.ShortName(),
- p.ParentEntityEntry.GetInfrastructure().BuildCurrentValuesString(p.ParentEntityEntry.Metadata.FindPrimaryKey()!.Properties));
+ p.ParentEntityEntry.GetInfrastructure()
+ .BuildCurrentValuesString(p.ParentEntityEntry.Metadata.FindPrimaryKey()!.Properties));
}
///
@@ -3288,7 +3289,7 @@ public static InterceptionResult SaveChangesStarting(
/// The context being used.
/// A to observe while waiting for the task to complete.
/// The, possibly intercepted, result.
- /// If the is canceled.
+ /// If the is canceled.
public static ValueTask> SaveChangesStartingAsync(
this IDiagnosticsLogger diagnostics,
DbContext context,
@@ -3375,7 +3376,7 @@ public static int SaveChangesCompleted(
/// The number of entities saved.
/// A to observe while waiting for the task to complete.
/// The, possibly intercepted, result.
- /// If the is canceled.
+ /// If the is canceled.
public static ValueTask SaveChangesCompletedAsync(
this IDiagnosticsLogger diagnostics,
DbContext context,
diff --git a/src/EFCore/Diagnostics/EntityTypeEventData.cs b/src/EFCore/Diagnostics/EntityTypeEventData.cs
index 71c677f1535..d4084acc31e 100644
--- a/src/EFCore/Diagnostics/EntityTypeEventData.cs
+++ b/src/EFCore/Diagnostics/EntityTypeEventData.cs
@@ -4,7 +4,6 @@
using System;
using System.Diagnostics;
using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Update;
namespace Microsoft.EntityFrameworkCore.Diagnostics
{
diff --git a/src/EFCore/Diagnostics/ISaveChangesInterceptor.cs b/src/EFCore/Diagnostics/ISaveChangesInterceptor.cs
index 445a12e1fd9..d852a5ef8d7 100644
--- a/src/EFCore/Diagnostics/ISaveChangesInterceptor.cs
+++ b/src/EFCore/Diagnostics/ISaveChangesInterceptor.cs
@@ -102,7 +102,7 @@ void SaveChangesFailed(
/// A normal implementation of this method for any interceptor that is not attempting to change the result
/// is to return the value passed in.
///
- /// If the is canceled.
+ /// If the is canceled.
ValueTask> SavingChangesAsync(
DbContextEventData eventData,
InterceptionResult result,
@@ -128,7 +128,7 @@ ValueTask> SavingChangesAsync(
/// A normal implementation of this method for any interceptor that is not attempting to change the result
/// is to return the value passed in.
///
- /// If the is canceled.
+ /// If the is canceled.
ValueTask SavedChangesAsync(
SaveChangesCompletedEventData eventData,
int result,
@@ -140,7 +140,7 @@ ValueTask SavedChangesAsync(
/// Contextual information about the failure.
/// A to observe while waiting for the task to complete.
/// A representing the asynchronous operation.
- /// If the is canceled.
+ /// If the is canceled.
Task SaveChangesFailedAsync(
DbContextErrorEventData eventData,
CancellationToken cancellationToken = default);
diff --git a/src/EFCore/Diagnostics/PropertyChangedEventData.cs b/src/EFCore/Diagnostics/PropertyChangedEventData.cs
index b31c58e2fec..e8540547fb9 100644
--- a/src/EFCore/Diagnostics/PropertyChangedEventData.cs
+++ b/src/EFCore/Diagnostics/PropertyChangedEventData.cs
@@ -51,7 +51,8 @@ public PropertyChangedEventData(
///
/// The property.
///
- public new virtual IProperty Property => (IProperty)base.Property;
+ public new virtual IProperty Property
+ => (IProperty)base.Property;
///
/// The old value.
diff --git a/src/EFCore/Diagnostics/PropertyValueEventData.cs b/src/EFCore/Diagnostics/PropertyValueEventData.cs
index 6422b1c11f8..05e162e75b4 100644
--- a/src/EFCore/Diagnostics/PropertyValueEventData.cs
+++ b/src/EFCore/Diagnostics/PropertyValueEventData.cs
@@ -48,7 +48,8 @@ public PropertyValueEventData(
///
/// The property.
///
- public new virtual IProperty Property => (IProperty)base.Property;
+ public new virtual IProperty Property
+ => (IProperty)base.Property;
///
/// The value.
diff --git a/src/EFCore/Diagnostics/ReferenceChangedEventData.cs b/src/EFCore/Diagnostics/ReferenceChangedEventData.cs
index a59058a7cf3..aacbce99441 100644
--- a/src/EFCore/Diagnostics/ReferenceChangedEventData.cs
+++ b/src/EFCore/Diagnostics/ReferenceChangedEventData.cs
@@ -51,7 +51,8 @@ public ReferenceChangedEventData(
///
/// The navigation.
///
- public new virtual INavigation Navigation => (INavigation)base.Navigation;
+ public new virtual INavigation Navigation
+ => (INavigation)base.Navigation;
///
/// The old referenced entity.
diff --git a/src/EFCore/Diagnostics/SaveChangesInterceptor.cs b/src/EFCore/Diagnostics/SaveChangesInterceptor.cs
index c88eeaaaa70..8fda40f6c82 100644
--- a/src/EFCore/Diagnostics/SaveChangesInterceptor.cs
+++ b/src/EFCore/Diagnostics/SaveChangesInterceptor.cs
@@ -87,7 +87,7 @@ public virtual void SaveChangesFailed(DbContextErrorEventData eventData)
/// A normal implementation of this method for any interceptor that is not attempting to change the result
/// is to return the value passed in.
///
- /// If the is canceled.
+ /// If the is canceled.
public virtual ValueTask> SavingChangesAsync(
DbContextEventData eventData,
InterceptionResult result,
@@ -115,7 +115,7 @@ public virtual ValueTask> SavingChangesAsync(
/// A normal implementation of this method for any interceptor that is not attempting to change the result
/// is to return the value passed in.
///
- /// If the is canceled.
+ /// If the is canceled.
public virtual ValueTask SavedChangesAsync(
SaveChangesCompletedEventData eventData,
int result,
@@ -128,7 +128,7 @@ public virtual ValueTask SavedChangesAsync(
/// Contextual information about the failure.
/// A to observe while waiting for the task to complete.
/// A representing the asynchronous operation.
- /// If the is canceled.
+ /// If the is canceled.
public virtual Task SaveChangesFailedAsync(
DbContextErrorEventData eventData,
CancellationToken cancellationToken = default)
diff --git a/src/EFCore/Diagnostics/SkipCollectionChangedEventData.cs b/src/EFCore/Diagnostics/SkipCollectionChangedEventData.cs
index c9f43d2fd50..651ac35cc36 100644
--- a/src/EFCore/Diagnostics/SkipCollectionChangedEventData.cs
+++ b/src/EFCore/Diagnostics/SkipCollectionChangedEventData.cs
@@ -55,7 +55,8 @@ public SkipCollectionChangedEventData(
///
/// The navigation.
///
- public new virtual ISkipNavigation Navigation => (ISkipNavigation)base.Navigation;
+ public new virtual ISkipNavigation Navigation
+ => (ISkipNavigation)base.Navigation;
///
/// The entities added to the collection.
diff --git a/src/EFCore/Diagnostics/WarningsConfiguration.cs b/src/EFCore/Diagnostics/WarningsConfiguration.cs
index be486007659..3707506bf58 100644
--- a/src/EFCore/Diagnostics/WarningsConfiguration.cs
+++ b/src/EFCore/Diagnostics/WarningsConfiguration.cs
@@ -171,7 +171,7 @@ public virtual WarningsConfiguration TryWithExplicit(EventId eventId, WarningBeh
: WithExplicit(new[] { eventId }, warningBehavior);
///
- /// Returns a value indicating whether all of the options used in
+ /// Returns a value indicating whether all of the options used in
/// are the same as in the given extension.
///
/// The other configuration object.
diff --git a/src/EFCore/EF.cs b/src/EFCore/EF.cs
index 4999d9e18cb..09ca915049d 100644
--- a/src/EFCore/EF.cs
+++ b/src/EFCore/EF.cs
@@ -14,7 +14,7 @@ namespace Microsoft.EntityFrameworkCore
///
///
/// See Database functions and
- /// Using EF.Property in EF Core queries for more information.
+ /// Using EF.Property in EF Core queries for more information.
///
// ReSharper disable once InconsistentNaming
public static partial class EF
@@ -33,7 +33,7 @@ internal static readonly MethodInfo PropertyMethod
///
///
///
- /// See Using EF.Property in EF Core queries for more information.
+ /// See Using EF.Property in EF Core queries for more information.
///
///
///
diff --git a/src/EFCore/Extensions/ConventionEntityTypeExtensions.cs b/src/EFCore/Extensions/ConventionEntityTypeExtensions.cs
index e61b9dffad8..4fbe405e2a8 100644
--- a/src/EFCore/Extensions/ConventionEntityTypeExtensions.cs
+++ b/src/EFCore/Extensions/ConventionEntityTypeExtensions.cs
@@ -36,8 +36,8 @@ public static void SetDefiningQuery(
LambdaExpression? definingQuery,
bool fromDataAnnotation = false)
=> ((EntityType)entityType).SetDefiningQuery(
- definingQuery,
- fromDataAnnotation ? ConfigurationSource.DataAnnotation : ConfigurationSource.Convention);
+ definingQuery,
+ fromDataAnnotation ? ConfigurationSource.DataAnnotation : ConfigurationSource.Convention);
///
/// Returns the configuration source for .
diff --git a/src/EFCore/Extensions/EntityFrameworkQueryableExtensions.cs b/src/EFCore/Extensions/EntityFrameworkQueryableExtensions.cs
index d4b28f8bc22..965ae03a2d2 100644
--- a/src/EFCore/Extensions/EntityFrameworkQueryableExtensions.cs
+++ b/src/EFCore/Extensions/EntityFrameworkQueryableExtensions.cs
@@ -71,7 +71,7 @@ public static string ToQueryString(this IQueryable source)
/// The task result contains if the source sequence contains any elements; otherwise, .
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task AnyAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -106,7 +106,7 @@ public static Task AnyAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task AnyAsync(
this IQueryable source,
Expression> predicate,
@@ -143,7 +143,7 @@ public static Task AnyAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task AllAsync(
this IQueryable source,
Expression> predicate,
@@ -180,7 +180,7 @@ public static Task AllAsync(
/// The task result contains the number of elements in the input sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task CountAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -215,7 +215,7 @@ public static Task CountAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task CountAsync(
this IQueryable source,
Expression> predicate,
@@ -248,7 +248,7 @@ public static Task CountAsync(
/// The task result contains the number of elements in the input sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task LongCountAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -284,7 +284,7 @@ public static Task LongCountAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task LongCountAsync(
this IQueryable source,
Expression> predicate,
@@ -322,7 +322,7 @@ public static Task LongCountAsync(
///
/// is .
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task FirstAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -368,7 +368,7 @@ public static Task FirstAsync(
/// contains no elements.
///
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task FirstAsync(
this IQueryable source,
Expression> predicate,
@@ -402,7 +402,7 @@ public static Task FirstAsync(
/// is empty; otherwise, the first element in .
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task FirstOrDefaultAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -439,7 +439,7 @@ public static Task FirstAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task FirstOrDefaultAsync(
this IQueryable source,
Expression> predicate,
@@ -448,7 +448,8 @@ public static Task FirstAsync(
Check.NotNull(source, nameof(source));
Check.NotNull(predicate, nameof(predicate));
- return ExecuteAsync>(QueryableMethods.FirstOrDefaultWithPredicate, source, predicate, cancellationToken);
+ return ExecuteAsync>(
+ QueryableMethods.FirstOrDefaultWithPredicate, source, predicate, cancellationToken);
}
#endregion
@@ -477,7 +478,7 @@ public static Task FirstAsync(
///
/// is .
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task LastAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -523,7 +524,7 @@ public static Task LastAsync(
/// contains no elements.
///
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task LastAsync(
this IQueryable source,
Expression> predicate,
@@ -557,7 +558,7 @@ public static Task LastAsync(
/// is empty; otherwise, the last element in .
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task LastOrDefaultAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -594,7 +595,7 @@ public static Task LastAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task LastOrDefaultAsync(
this IQueryable source,
Expression> predicate,
@@ -643,7 +644,7 @@ public static Task LastAsync(
/// contains no elements.
///
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SingleAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -696,7 +697,7 @@ public static Task SingleAsync(
/// contains no elements.
///
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SingleAsync(
this IQueryable source,
Expression> predicate,
@@ -733,7 +734,7 @@ public static Task SingleAsync(
///
/// is .
/// contains more than one element.
- /// If the is canceled.
+ /// If the is canceled.
public static Task SingleOrDefaultAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -773,7 +774,7 @@ public static Task SingleAsync(
///
/// More than one element satisfies the condition in .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SingleOrDefaultAsync(
this IQueryable source,
Expression> predicate,
@@ -812,7 +813,7 @@ public static Task SingleAsync(
///
/// is .
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task MinAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -850,7 +851,7 @@ public static Task MinAsync(
/// or is .
///
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task MinAsync(
this IQueryable source,
Expression> selector,
@@ -888,7 +889,7 @@ public static Task MinAsync(
///
/// is .
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task MaxAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -926,7 +927,7 @@ public static Task MaxAsync(
/// or is .
///
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task MaxAsync(
this IQueryable source,
Expression> selector,
@@ -962,7 +963,7 @@ public static Task MaxAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -992,7 +993,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1027,7 +1028,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1064,7 +1065,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1097,7 +1098,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1127,7 +1128,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1161,7 +1162,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1197,7 +1198,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1230,7 +1231,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1260,7 +1261,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1294,7 +1295,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1331,7 +1332,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1364,7 +1365,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1394,7 +1395,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1428,7 +1429,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1465,7 +1466,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1498,7 +1499,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1528,7 +1529,7 @@ public static Task SumAsync(
/// The task result contains the sum of the values in the sequence.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1562,7 +1563,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1599,7 +1600,7 @@ public static Task SumAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task SumAsync(
this IQueryable source,
Expression> selector,
@@ -1637,7 +1638,7 @@ public static Task SumAsync(
///
/// is .
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1668,7 +1669,7 @@ public static Task AverageAsync(
/// The task result contains the average of the sequence of values.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1705,7 +1706,7 @@ public static Task AverageAsync(
/// or is .
///
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
Expression> selector,
@@ -1743,7 +1744,7 @@ public static Task AverageAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
Expression> selector,
@@ -1777,7 +1778,7 @@ public static Task AverageAsync(
///
/// is .
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1807,7 +1808,7 @@ public static Task AverageAsync(
/// The task result contains the average of the sequence of values.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1843,7 +1844,7 @@ public static Task AverageAsync(
/// or is .
///
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
Expression> selector,
@@ -1881,7 +1882,7 @@ public static Task AverageAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
Expression> selector,
@@ -1915,7 +1916,7 @@ public static Task AverageAsync(
///
/// is .
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1945,7 +1946,7 @@ public static Task AverageAsync(
/// The task result contains the average of the sequence of values.
///
/// is .
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -1981,7 +1982,7 @@ public static Task AverageAsync(
/// or is .
///
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
Expression> selector,
@@ -2019,7 +2020,7 @@ public static Task AverageAsync(
///
/// or is .
///
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
Expression> selector,
@@ -2053,7 +2054,7 @@ public static Task AverageAsync(
///
/// is .
/// contains no elements.
- /// If the is canceled.
+ /// If the is canceled.
public static Task AverageAsync(
this IQueryable source,
CancellationToken cancellationToken = default)
@@ -2084,7 +2085,7 @@ public static Task