From 7db82b40ffeac1b6d6fb3121c9687fdca2d4fee7 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Tue, 8 Sep 2020 22:08:23 +0300 Subject: [PATCH] Grammar/style pass for CoreStrings (#22417) Part of #7201 --- src/EFCore/Properties/CoreStrings.Designer.cs | 348 +++++++++--------- src/EFCore/Properties/CoreStrings.resx | 348 +++++++++--------- .../Query/GearsOfWarQueryTestBase.cs | 10 +- .../ExecutionStrategyTest.cs | 4 +- test/EFCore.Tests/EFTest.cs | 3 +- 5 files changed, 357 insertions(+), 356 deletions(-) diff --git a/src/EFCore/Properties/CoreStrings.Designer.cs b/src/EFCore/Properties/CoreStrings.Designer.cs index 1430118e861..b8363a294fa 100644 --- a/src/EFCore/Properties/CoreStrings.Designer.cs +++ b/src/EFCore/Properties/CoreStrings.Designer.cs @@ -25,7 +25,7 @@ private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.EntityFrameworkCore.Properties.CoreStrings", typeof(CoreStrings).Assembly); /// - /// The corresponding CLR type for entity type '{entityType}' is not instantiable and there is no derived entity type in the model that corresponds to a concrete CLR type. + /// The corresponding CLR type for entity type '{entityType}' cannot be instantiated, and there is no derived entity type in the model that corresponds to a concrete CLR type. /// public static string AbstractLeafEntityType([CanBeNull] object entityType) => string.Format( @@ -41,7 +41,7 @@ public static string AddingProxyTypeAsEntityType([CanBeNull] object typeName) typeName); /// - /// The entity type '{entityType}' has a defining navigation and the supplied entity is currently referenced from several owner entities. To access the entry for a particular reference call '{targetEntryCall}' on the owner entry. + /// The entity type '{entityType}' has a defining navigation and the supplied entity is currently referenced from several owner entities. To access the entry for a particular reference, call '{targetEntryCall}' on the owner entry. /// public static string AmbiguousDependentEntity([CanBeNull] object entityType, [CanBeNull] object targetEntryCall) => string.Format( @@ -65,7 +65,7 @@ public static string AmbiguousEndRequiredDependentNavigation([CanBeNull] object entityType, navigation, foreignKeyProperties); /// - /// The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be flipped to entity type '{principalEntityType}' since it was configured as required before the dependent side was configured. Configure the foreign key property or the principal key before configuring the foreign key as required. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. + /// The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be inverted to entity type '{principalEntityType}' since it was configured as required before the dependent side was configured. Configure the foreign key property or the principal key before configuring the foreign key as required. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. /// public static string AmbiguousEndRequiredInverted([CanBeNull] object foreignKeyProperties, [CanBeNull] object entityType, [CanBeNull] object principalEntityType) => string.Format( @@ -73,7 +73,7 @@ public static string AmbiguousEndRequiredInverted([CanBeNull] object foreignKeyP foreignKeyProperties, entityType, principalEntityType); /// - /// Both relationships between '{firstDependentToPrincipalNavigationSpecification}' and '{firstPrincipalToDependentNavigationSpecification}' and between '{secondDependentToPrincipalNavigationSpecification}' and '{secondPrincipalToDependentNavigationSpecification}' could use {foreignKeyProperties} as the foreign key. To resolve this configure the foreign key properties explicitly in 'OnModelCreating' on at least one of the relationships. + /// Both relationships between '{firstDependentToPrincipalNavigationSpecification}' and '{firstPrincipalToDependentNavigationSpecification}' and between '{secondDependentToPrincipalNavigationSpecification}' and '{secondPrincipalToDependentNavigationSpecification}' could use {foreignKeyProperties} as the foreign key. To resolve this, configure the foreign key properties explicitly in 'OnModelCreating' on at least one of the relationships. /// public static string AmbiguousForeignKeyPropertyCandidates([CanBeNull] object firstDependentToPrincipalNavigationSpecification, [CanBeNull] object firstPrincipalToDependentNavigationSpecification, [CanBeNull] object secondDependentToPrincipalNavigationSpecification, [CanBeNull] object secondPrincipalToDependentNavigationSpecification, [CanBeNull] object foreignKeyProperties) => string.Format( @@ -81,7 +81,7 @@ public static string AmbiguousForeignKeyPropertyCandidates([CanBeNull] object fi firstDependentToPrincipalNavigationSpecification, firstPrincipalToDependentNavigationSpecification, secondDependentToPrincipalNavigationSpecification, secondPrincipalToDependentNavigationSpecification, foreignKeyProperties); /// - /// The dependent side could not be determined for the one-to-one relationship between '{dependentToPrincipalNavigationSpecification}' and '{principalToDependentNavigationSpecification}'. To identify the dependent side of the relationship, configure the foreign key property. If these navigations should not be part of the same relationship configure them independently via separate method chains in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. + /// The dependent side could not be determined for the one-to-one relationship between '{dependentToPrincipalNavigationSpecification}' and '{principalToDependentNavigationSpecification}'. To identify the dependent side of the relationship, configure the foreign key property. If these navigations should not be part of the same relationship, configure them independently via separate method chains in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. /// public static string AmbiguousOneToOneRelationship([CanBeNull] object dependentToPrincipalNavigationSpecification, [CanBeNull] object principalToDependentNavigationSpecification) => string.Format( @@ -89,7 +89,7 @@ public static string AmbiguousOneToOneRelationship([CanBeNull] object dependentT dependentToPrincipalNavigationSpecification, principalToDependentNavigationSpecification); /// - /// Unable to determine the owner for the relationship between '{entityTypeNavigationSpecification}' and '{otherEntityType}' as both types have been marked as owned. Either manually configure the ownership, or ignore the corresponding navigations using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. + /// Unable to determine the owner for the relationship between '{entityTypeNavigationSpecification}' and '{otherEntityType}' as both types have been marked as owned. Either manually configure the ownership, or ignore the corresponding navigations using the [NotMapped] attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. /// public static string AmbiguousOwnedNavigation([CanBeNull] object entityTypeNavigationSpecification, [CanBeNull] object otherEntityType) => string.Format( @@ -161,7 +161,7 @@ public static string BadFilterExpression([CanBeNull] object filter, [CanBeNull] filter, entityType, clrType); /// - /// The filter expression '{filter}' cannot be specified for owned entity type '{entityType}'. A filter may only be applied to the entity that is not owned. + /// The filter expression '{filter}' cannot be specified for owned entity type '{entityType}'. A filter may only be applied to an entity type that is not owned. /// public static string BadFilterOwnedType([CanBeNull] object filter, [CanBeNull] object entityType) => string.Format( @@ -199,13 +199,13 @@ public static string CannotBeNullablePK([CanBeNull] object property, [CanBeNull] property, entityType); /// - /// Unable to convert queryable method to enumerable method. This is likely an issue in Entity Framework, please file an issue at https://go.microsoft.com/fwlink/?linkid=2142044. + /// Unable to convert a queryable method to an enumerable method. This is likely an issue in Entity Framework, please file an issue at https://go.microsoft.com/fwlink/?linkid=2142044. /// public static string CannotConvertQueryableToEnumerableMethod => GetString("CannotConvertQueryableToEnumerableMethod"); /// - /// Cannot create instance of value generator type '{generatorType}'. Ensure that the type is instantiable and has a parameterless constructor, or use the overload of HasValueGenerator that accepts a delegate. + /// Cannot create an instance of value generator type '{generatorType}'. Ensure that the type can be instantiated and has a parameterless constructor, or use the overload of 'HasValueGenerator' that accepts a delegate. /// public static string CannotCreateValueGenerator([CanBeNull] object generatorType) => string.Format( @@ -229,7 +229,7 @@ public static string CannotMarkShared([CanBeNull] object type) type); /// - /// Unable to create an instance of entity type '{entityType}' because it is abstract. Either make it non-abstract or consider mapping at least one derived type. + /// Unable to create an instance of entity type '{entityType}' because it is abstract. Consider making make it non-abstract or mapping at least one derived type. /// public static string CannotMaterializeAbstractType([CanBeNull] object entityType) => string.Format( @@ -237,7 +237,7 @@ public static string CannotMaterializeAbstractType([CanBeNull] object entityType entityType); /// - /// There is no navigation '{1_entityType}.{0_navigationName}'. Please add the navigation to the entity type before configuring it. + /// Navigation '{1_entityType}.{0_navigationName}' was not found. Please add the navigation to the entity type before configuring it. /// public static string CanOnlyConfigureExistingNavigations([CanBeNull] object navigationName, [CanBeNull] object entityType) => string.Format( @@ -245,7 +245,7 @@ public static string CanOnlyConfigureExistingNavigations([CanBeNull] object navi navigationName, entityType); /// - /// The entity type '{entityType}' is configured to use the '{changeTrackingStrategy}' change tracking strategy but does not implement the required '{notificationInterface}' interface. Implement '{notificationInterface}' on '{entityType}' or use a different change tracking strategy. + /// The entity type '{entityType}' is configured to use the '{changeTrackingStrategy}' change tracking strategy, but does not implement the required '{notificationInterface}' interface. Implement '{notificationInterface}' on '{entityType}' or use a different change tracking strategy. /// public static string ChangeTrackingInterfaceMissing([CanBeNull] object entityType, [CanBeNull] object changeTrackingStrategy, [CanBeNull] object notificationInterface) => string.Format( @@ -269,7 +269,7 @@ public static string CircularInheritance([CanBeNull] object entityType, [CanBeNu entityType, baseEntityType); /// - /// The shared-type entity type '{entityType}' cannot be added because the model already contains an entity type with the same name but a different CLR type '{otherClrType}'. Ensure all entity type names are unique. + /// The shared-type entity type '{entityType}' cannot be added because the model already contains an entity type with the same name, but with a different CLR type '{otherClrType}'. Ensure all entity type names are unique. /// public static string ClashingMismatchedSharedType([CanBeNull] object entityType, [CanBeNull] object otherClrType) => string.Format( @@ -277,7 +277,7 @@ public static string ClashingMismatchedSharedType([CanBeNull] object entityType, entityType, otherClrType); /// - /// There is already an entity type named '{ownedTypeName}'. Use a different name when configuring the ownership '{ownerEntityType}.{navigation}' in 'OnModelCreating'. + /// An entity type named '{ownedTypeName}' has already been added to the model. Use a different name when configuring the ownership '{ownerEntityType}.{navigation}' in 'OnModelCreating'. /// public static string ClashingNamedOwnedType([CanBeNull] object ownedTypeName, [CanBeNull] object ownerEntityType, [CanBeNull] object navigation) => string.Format( @@ -285,7 +285,7 @@ public static string ClashingNamedOwnedType([CanBeNull] object ownedTypeName, [C ownedTypeName, ownerEntityType, navigation); /// - /// The type '{entityType}' cannot be marked as owned because the derived entity type - '{derivedType}' has been configured as non-owned. Either don't configure '{derivedType}' as non-owned or call 'HasBaseType(null)' for it in 'OnModelCreating'. + /// The type '{entityType}' cannot be marked as owned because the derived entity type '{derivedType}' has been configured as non-owned. Either don't configure '{derivedType}' as non-owned, or call 'HasBaseType(null)' for it in 'OnModelCreating'. /// public static string ClashingNonOwnedDerivedEntityType([CanBeNull] object entityType, [CanBeNull] object derivedType) => string.Format( @@ -341,7 +341,7 @@ public static string ClashingWeakEntityType([CanBeNull] object entityType) entityType); /// - /// The client projection contains a reference to a constant expression of '{constantType}' which is being passed as an argument to the method '{methodName}'. This could potentially cause a memory leak. Consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. + /// The client projection contains a reference to a constant expression of '{constantType}' which is being passed as an argument to the method '{methodName}'. This could potentially cause a memory leak; consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. /// public static string ClientProjectionCapturingConstantInMethodArgument([CanBeNull] object constantType, [CanBeNull] object methodName) => string.Format( @@ -349,7 +349,7 @@ public static string ClientProjectionCapturingConstantInMethodArgument([CanBeNul constantType, methodName); /// - /// The client projection contains a reference to a constant expression of '{constantType}' through the instance method '{methodName}'. This could potentially cause a memory leak. Consider making the method static so that it does not capture constant in the instance. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. + /// The client projection contains a reference to a constant expression of '{constantType}' through the instance method '{methodName}'. This could potentially cause a memory leak; consider making the method static so that it does not capture constant in the instance. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. /// public static string ClientProjectionCapturingConstantInMethodInstance([CanBeNull] object constantType, [CanBeNull] object methodName) => string.Format( @@ -357,7 +357,7 @@ public static string ClientProjectionCapturingConstantInMethodInstance([CanBeNul constantType, methodName); /// - /// The client projection contains a reference to a constant expression of '{constantType}'. This could potentially cause a memory leak. Consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. + /// The client projection contains a reference to a constant expression of '{constantType}'. This could potentially cause a memory leak; consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. /// public static string ClientProjectionCapturingConstantInTree([CanBeNull] object constantType) => string.Format( @@ -381,7 +381,7 @@ public static string CollectionIsReference([CanBeNull] object property, [CanBeNu property, entityType, collectionMethod, referenceMethod); /// - /// Comparer for type '{type}' cannot be used for '{entityType}.{propertyName}' because its type is '{propertyType}'. + /// The comparer for type '{type}' cannot be used for '{entityType}.{propertyName}' because its type is '{propertyType}'. /// public static string ComparerPropertyMismatch([CanBeNull] object type, [CanBeNull] object entityType, [CanBeNull] object propertyName, [CanBeNull] object propertyType) => string.Format( @@ -389,7 +389,7 @@ public static string ComparerPropertyMismatch([CanBeNull] object type, [CanBeNul type, entityType, propertyName, propertyType); /// - /// There are multiple properties with [ForeignKey] attribute pointing to navigation '{1_entityType}.{0_navigation}'. To define a composite foreign key using data annotations, use [ForeignKey] attribute on navigation. + /// There are multiple properties with the [ForeignKey] attribute pointing to navigation '{1_entityType}.{0_navigation}'. To define a composite foreign key using data annotations, use the [ForeignKey] attribute on the navigation. /// public static string CompositeFkOnProperty([CanBeNull] object navigation, [CanBeNull] object entityType) => string.Format( @@ -397,7 +397,7 @@ public static string CompositeFkOnProperty([CanBeNull] object navigation, [CanBe navigation, entityType); /// - /// Entity type '{entityType}' has multiple properties with the [Key] attribute. Composite primary keys can only be set using 'HasKey' in 'OnModelCreating'. + /// The entity type '{entityType}' has multiple properties with the [Key] attribute. Composite primary keys can only be set using 'HasKey' in 'OnModelCreating'. /// public static string CompositePKWithDataAnnotation([CanBeNull] object entityType) => string.Format( @@ -405,7 +405,7 @@ public static string CompositePKWithDataAnnotation([CanBeNull] object entityType entityType); /// - /// A second operation started on this context before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913. + /// A second operation was started on this context before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913. /// public static string ConcurrentMethodInvocation => GetString("ConcurrentMethodInvocation"); @@ -419,7 +419,7 @@ public static string ConflictingBackingFields([CanBeNull] object property, [CanB property, entityType, field1, field2); /// - /// There are multiple [ForeignKey] attributes which are pointing to same set of properties - '{propertyList}' on entity type '{entityType}'. + /// There are multiple [ForeignKey] attributes which are pointing to same set of properties '{propertyList}' on entity type '{entityType}'. /// public static string ConflictingForeignKeyAttributes([CanBeNull] object propertyList, [CanBeNull] object entityType) => string.Format( @@ -435,7 +435,7 @@ public static string ConflictingPropertyOrNavigation([CanBeNull] object member, member, entityType, conflictingEntityType); /// - /// Cannot create a relationship between '{newPrincipalNavigationSpecification}' and '{newDependentNavigationSpecification}', because there already is a relationship between '{existingPrincipalNavigationSpecification}' and '{existingDependentNavigationSpecification}'. Navigation can only participate in a single relationship. If you want to override an existing relationship call 'Ignore' on the navigation '{newDependentNavigationSpecification}' first in 'OnModelCreating'. + /// Cannot create a relationship between '{newPrincipalNavigationSpecification}' and '{newDependentNavigationSpecification}' because a relationship already exists between '{existingPrincipalNavigationSpecification}' and '{existingDependentNavigationSpecification}'. Navigation properties can only participate in a single relationship. If you want to override an existing relationship call 'Ignore' on the navigation '{newDependentNavigationSpecification}' first in 'OnModelCreating'. /// public static string ConflictingRelationshipNavigation([CanBeNull] object newPrincipalNavigationSpecification, [CanBeNull] object newDependentNavigationSpecification, [CanBeNull] object existingPrincipalNavigationSpecification, [CanBeNull] object existingDependentNavigationSpecification) => string.Format( @@ -451,7 +451,7 @@ public static string ConstructorBindingFailed([CanBeNull] object failedBinds, [C failedBinds, parameters); /// - /// The constructors '{firstConstructor}' and '{secondConstructor}' were found with the same number of parameters that could both be used by Entity Framework. The constructor to use must be configured in 'OnModelCreating'. + /// The constructors '{firstConstructor}' and '{secondConstructor}' have the same number of parameters, and can both be used by Entity Framework. The constructor to be used must be configured in 'OnModelCreating'. /// public static string ConstructorConflict([CanBeNull] object firstConstructor, [CanBeNull] object secondConstructor) => string.Format( @@ -495,7 +495,7 @@ public static string ConverterPropertyMismatch([CanBeNull] object converterType, converterType, entityType, propertyName, propertyType); /// - /// Cannot compose converter from '{typeOneIn}' to '{typeOneOut}' with converter from '{typeTwoIn}' to '{typeTwoOut}' because the output type of the first converter is different from the input type of the second converter. + /// Cannot compose converter from '{typeOneIn}' to '{typeOneOut}' with converter from '{typeTwoIn}' to '{typeTwoOut}' because the output type of the first converter doesn't match the input type of the second converter. /// public static string ConvertersCannotBeComposed([CanBeNull] object typeOneIn, [CanBeNull] object typeOneOut, [CanBeNull] object typeTwoIn, [CanBeNull] object typeTwoOut) => string.Format( @@ -503,7 +503,7 @@ public static string ConvertersCannotBeComposed([CanBeNull] object typeOneIn, [C typeOneIn, typeOneOut, typeTwoIn, typeTwoOut); /// - /// The extension method '{method}' is being used with a custom implementation of '{interfaceType}'. Use of custom implementations of the Entity Framework metadata interfaces is not supported. Consider deriving from '{concreteType}' instead. Please contact the Entity Framework team if you have a compelling case for a custom implementation of the metadata interfaces so that we can consider ways to achieve this. + /// The extension method '{method}' is being used with a custom implementation of '{interfaceType}'. Use of custom implementations of the Entity Framework metadata interfaces is not supported, consider deriving from '{concreteType}' instead. Please contact the Entity Framework team if you have a compelling case for a custom implementation of the metadata interfaces so that we can consider ways to achieve this. /// public static string CustomMetadata([CanBeNull] object method, [CanBeNull] object interfaceType, [CanBeNull] object concreteType) => string.Format( @@ -511,13 +511,13 @@ public static string CustomMetadata([CanBeNull] object method, [CanBeNull] objec method, interfaceType, concreteType); /// - /// Data binding directly to 'DbSet.Local' is not supported since it does not provide a stable ordering. For WPF bind to 'DbSet.Local.ToObservableCollection'. For WinForms bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms bind to 'DbSet.ToList' or use Model Binding. + /// Data binding directly to 'DbSet.Local' is not supported since it does not provide a stable ordering. For WPF, bind to 'DbSet.Local.ToObservableCollection'. For WinForms, bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms, bind to 'DbSet.ToList' or use Model Binding. /// public static string DataBindingToLocalWithIListSource => GetString("DataBindingToLocalWithIListSource"); /// - /// Data binding directly to a store query is not supported. Instead populate a DbSet with data, for example by calling 'Load' on the DbSet, and then bind to local data to avoid sending a query to the database each time the databound control iterates the data. For WPF bind to 'DbSet.Local.ToObservableCollection'. For WinForms bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms bind to 'DbSet.ToList' or use Model Binding. + /// Data binding directly to a store query is not supported. Instead populate a DbSet with data, for example by calling 'Load' on the DbSet, and then bind to local data to avoid sending a query to the database each time the databound control iterates the data. For WPF, bind to 'DbSet.Local.ToObservableCollection'. For WinForms, bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms, bind to 'DbSet.ToList' or use Model Binding. /// public static string DataBindingWithIListSource => GetString("DataBindingWithIListSource"); @@ -563,7 +563,7 @@ public static string DerivedEntityCannotHaveKeys([CanBeNull] object entityType) entityType); /// - /// A '{derivedType}' cannot be configured as keyless because it is a derived type. The root type '{rootType}' must be configured as keyless. If you did not intend for '{rootType}' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder in 'OnModelCreating', or referenced from a navigation on a type that is included in the model. + /// '{derivedType}' cannot be configured as keyless because it is a derived type; the root type '{rootType}' must be configured as keyless instead. If you did not intend for '{rootType}' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder in 'OnModelCreating', or referenced from a navigation on a type that is included in the model. /// public static string DerivedEntityTypeHasNoKey([CanBeNull] object derivedType, [CanBeNull] object rootType) => string.Format( @@ -611,7 +611,7 @@ public static string DiscriminatorPropertyNotFound([CanBeNull] object property, property, entityType); /// - /// Cannot set discriminator value '{value}' for discriminator property '{discriminator}' because it is not assignable to '{discriminatorType}'. + /// Cannot set discriminator value '{value}' for discriminator property '{discriminator}' because it is not assignable to type '{discriminatorType}'. /// public static string DiscriminatorValueIncompatible([CanBeNull] object value, [CanBeNull] object discriminator, [CanBeNull] object discriminatorType) => string.Format( @@ -627,7 +627,7 @@ public static string DuplicateAnnotation([CanBeNull] object annotation) annotation); /// - /// The discriminator value for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy needs to have a unique discriminator value. + /// The discriminator value for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy must have a unique discriminator value. /// public static string DuplicateDiscriminatorValue([CanBeNull] object entityType1, [CanBeNull] object discriminatorValue, [CanBeNull] object entityType2) => string.Format( @@ -683,7 +683,7 @@ public static string DuplicatePropertiesOnBase([CanBeNull] object entityType, [C entityType, baseType, derivedPropertyType, derivedProperty, basePropertyType, baseProperty); /// - /// The properties {propertyList} cannot be used, because they contain a duplicate - '{property}'. + /// The properties {propertyList} cannot be used, because they contain a duplicate: '{property}'. /// public static string DuplicatePropertyInList([CanBeNull] object propertyList, [CanBeNull] object property) => string.Format( @@ -699,7 +699,7 @@ public static string DuplicateServicePropertyType([CanBeNull] object property, [ property, serviceType, entityType, duplicateName, duplicateEntityType); /// - /// Cannot translate the '{comparisonOperator}' on a subquery expression of entity type '{entityType}' because it has a composite primary key. See https://go.microsoft.com/fwlink/?linkid=2141942 for information on how to rewrite your query. + /// Cannot translate '{comparisonOperator}' on a subquery expression of entity type '{entityType}' because it has a composite primary key. See https://go.microsoft.com/fwlink/?linkid=2141942 for information on how to rewrite your query. /// public static string EntityEqualityOnCompositeKeyEntitySubqueryNotSupported([CanBeNull] object comparisonOperator, [CanBeNull] object entityType) => string.Format( @@ -715,7 +715,7 @@ public static string EntityEqualityOnKeylessEntityNotSupported([CanBeNull] objec comparisonOperator, entityType); /// - /// The entity type '{entityType}' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943. + /// The entity type '{entityType}' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943. /// public static string EntityRequiresKey([CanBeNull] object entityType) => string.Format( @@ -763,7 +763,7 @@ public static string EntityTypeNotFound([CanBeNull] object entityType) entityType); /// - /// The specified entity type '{entityType}' is invalid. It should be either the dependent entity type '{dependentType}' or the principal entity type '{principalType}' or an entity type derived from one of them. + /// The specified entity type '{entityType}' is invalid. It must be the dependent entity type '{dependentType}', the principal entity type '{principalType}' or an entity type derived from one of them. /// public static string EntityTypeNotInRelationship([CanBeNull] object entityType, [CanBeNull] object dependentType, [CanBeNull] object principalType) => string.Format( @@ -771,7 +771,7 @@ public static string EntityTypeNotInRelationship([CanBeNull] object entityType, entityType, dependentType, principalType); /// - /// The specified entity type '{entityType}' is invalid. It should be either the dependent entity type '{dependentType}' or the principal entity type '{principalType}'. + /// The specified entity type '{entityType}' is invalid. It must be either the dependent entity type '{dependentType}' or the principal entity type '{principalType}'. /// public static string EntityTypeNotInRelationshipStrict([CanBeNull] object entityType, [CanBeNull] object dependentType, [CanBeNull] object principalType) => string.Format( @@ -779,7 +779,7 @@ public static string EntityTypeNotInRelationshipStrict([CanBeNull] object entity entityType, dependentType, principalType); /// - /// The specified entity types '{invalidDependentType}' and '{invalidPrincipalType}' are invalid. They should be '{dependentType}' and '{principalType}' or entity types in the same hierarchy. + /// The specified entity types '{invalidDependentType}' and '{invalidPrincipalType}' are invalid. They should be '{dependentType}' and '{principalType}', or entity types in the same hierarchy. /// public static string EntityTypesNotInRelationship([CanBeNull] object invalidDependentType, [CanBeNull] object invalidPrincipalType, [CanBeNull] object dependentType, [CanBeNull] object principalType) => string.Format( @@ -801,7 +801,7 @@ public static string ErrorMaterializingPropertyInvalidCast([CanBeNull] object en entityType, property, expectedType, actualType); /// - /// The configured execution strategy '{strategy}' does not support user initiated transactions. Use the execution strategy returned by '{getExecutionStrategyMethod}' to execute all the operations in the transaction as a retriable unit. + /// The configured execution strategy '{strategy}' does not support user-initiated transactions. Use the execution strategy returned by '{getExecutionStrategyMethod}' to execute all the operations in the transaction as a retriable unit. /// public static string ExecutionStrategyExistingTransaction([CanBeNull] object strategy, [CanBeNull] object getExecutionStrategyMethod) => string.Format( @@ -863,7 +863,7 @@ public static string FkAttributeOnNonUniquePrincipal([CanBeNull] object navigati navigation, principalType, dependentType); /// - /// The [ForeignKey] attributes on property '{property}' and navigation '{navigation}' in entity type '{entityType}' do not point at each other. The value of [ForeignKey] attribute on property should be navigation name and the value of [ForeignKey] attribute on navigation should be the foreign key property name. + /// The [ForeignKey] attributes on property '{property}' and navigation '{navigation}' in entity type '{entityType}' do not point at each other. The value of the [ForeignKey] attribute on the property should be navigation name, and the value of the [ForeignKey] attribute on the navigation should be the foreign key property name. /// public static string FkAttributeOnPropertyNavigationMismatch([CanBeNull] object property, [CanBeNull] object navigation, [CanBeNull] object entityType) => string.Format( @@ -879,7 +879,7 @@ public static string ForeignKeyCountMismatch([CanBeNull] object foreignKeyProper foreignKeyProperties, dependentType, principalKey, principalType); /// - /// Cannot remove foreign key {foreigKey} from entity type '{entityType}' because it is referenced by a skip navigation '{navigation}' on entity type '{navigationEntityType}'. All referencing skip navigation must be removed before the referenced foreign key can be removed. + /// Cannot remove the foreign key {foreigKey} from entity type '{entityType}' because it is referenced by a skip navigation '{navigation}' on entity type '{navigationEntityType}'. All referencing skip navigation must be removed before the referenced foreign key can be removed. /// public static string ForeignKeyInUseSkipNavigation([CanBeNull] object foreigKey, [CanBeNull] object entityType, [CanBeNull] object navigation, [CanBeNull] object navigationEntityType) => string.Format( @@ -887,7 +887,7 @@ public static string ForeignKeyInUseSkipNavigation([CanBeNull] object foreigKey, foreigKey, entityType, navigation, navigationEntityType); /// - /// The specified foreign key properties {foreignKeyProperties} are not declared on the entity type '{entityType}'. Ensure foreign key properties are declared on the target entity type. + /// The specified foreign key properties {foreignKeyProperties} are not declared on the entity type '{entityType}'. Ensure that foreign key properties are declared on the target entity type. /// public static string ForeignKeyPropertiesWrongEntity([CanBeNull] object foreignKeyProperties, [CanBeNull] object entityType) => string.Format( @@ -981,7 +981,7 @@ public static string IdentityConflict([CanBeNull] object entityType, [CanBeNull] entityType, keyProperties); /// - /// The instance of entity type '{entityType}' cannot be tracked because another instance with the same key value for {keyProperties} is already being tracked. When replacing owned entities modify the properties without changing the instance or detach the previous owned entity entry first. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values. + /// The instance of entity type '{entityType}' cannot be tracked because another instance with the same key value for {keyProperties} is already being tracked. When replacing owned entities, modify the properties without changing the instance or detach the previous owned entity entry first. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values. /// public static string IdentityConflictOwned([CanBeNull] object entityType, [CanBeNull] object keyProperties) => string.Format( @@ -989,7 +989,7 @@ public static string IdentityConflictOwned([CanBeNull] object entityType, [CanBe entityType, keyProperties); /// - /// The instance of entity type '{entityType}' cannot be tracked because another instance with the key value '{keyValue}' is already being tracked. When replacing owned entities modify the properties without changing the instance or detach the previous owned entity entry first. + /// The instance of entity type '{entityType}' cannot be tracked because another instance with the key value '{keyValue}' is already being tracked. When replacing owned entities, modify the properties without changing the instance or detach the previous owned entity entry first. /// public static string IdentityConflictOwnedSensitive([CanBeNull] object entityType, [CanBeNull] object keyValue) => string.Format( @@ -1019,7 +1019,7 @@ public static string ImplementationTypeRequired([CanBeNull] object service) service); /// - /// Include is not supported for entities with defining query. Entity type: '{entityType}' + /// 'Include' is not supported on entity type '{entityType}' because it has a defining query. /// [Obsolete] public static string IncludeOnEntityWithDefiningQueryNotSupported([CanBeNull] object entityType) @@ -1028,13 +1028,13 @@ public static string IncludeOnEntityWithDefiningQueryNotSupported([CanBeNull] ob entityType); /// - /// Include has been used on non entity queryable. + /// Include has been used on a non-entity queryable. /// public static string IncludeOnNonEntity => GetString("IncludeOnNonEntity"); /// - /// The Include path '{navigationName}->{inverseNavigationName}' results in a cycle. Cycles are not allowed in no-tracking queries. Either use a tracking query or remove the cycle. + /// The Include path '{navigationName}->{inverseNavigationName}' results in a cycle. Cycles are not allowed in no-tracking queries; either use a tracking query or remove the cycle. /// public static string IncludeWithCycle([CanBeNull] object navigationName, [CanBeNull] object inverseNavigationName) => string.Format( @@ -1058,7 +1058,7 @@ public static string InconsistentOwnership([CanBeNull] object ownedEntityType, [ ownedEntityType, nonOwnedEntityType); /// - /// The specified index properties {index} are not declared on the entity type '{entityType}'. Ensure index properties are declared on the target entity type. + /// The specified index properties {index} are not declared on the entity type '{entityType}'. Ensure that index properties are declared on the target entity type. /// public static string IndexPropertiesWrongEntity([CanBeNull] object index, [CanBeNull] object entityType) => string.Format( @@ -1074,7 +1074,7 @@ public static string IndexWrongType([CanBeNull] object indexProperties, [CanBeNu indexProperties, entityType, otherEntityType); /// - /// The property '{property}' cannot be ignored on entity type '{entityType}', because it's declared on the base entity type '{baseEntityType}'. To exclude this property from your model, use [NotMapped] attribute or 'EntityTypeBuilder.Ignore' on the base type in 'OnModelCreating'. + /// The property '{property}' cannot be ignored on entity type '{entityType}' because it's declared on the base entity type '{baseEntityType}'. To exclude this property from your model, use the [NotMapped] attribute or 'EntityTypeBuilder.Ignore' on the base type in 'OnModelCreating'. /// public static string InheritedPropertyCannotBeIgnored([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object baseEntityType) => string.Format( @@ -1082,7 +1082,7 @@ public static string InheritedPropertyCannotBeIgnored([CanBeNull] object propert property, entityType, baseEntityType); /// - /// The property '{entityType}.{navigation}' is of an interface type ('{propertyType}'). If it is a navigation manually configure the relationship for this property by casting it to a mapped entity type, otherwise ignore the property using the [NotMapped] attribute or 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. + /// The property '{entityType}.{navigation}' is of an interface type ('{propertyType}'). If it is a navigation, manually configure the relationship for this property by casting it to a mapped entity type. Otherwise, ignore the property using the [NotMapped] attribute or 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. /// public static string InterfacePropertyNotAdded([CanBeNull] object entityType, [CanBeNull] object navigation, [CanBeNull] object propertyType) => string.Format( @@ -1090,7 +1090,7 @@ public static string InterfacePropertyNotAdded([CanBeNull] object entityType, [C entityType, navigation, propertyType); /// - /// The entity type related to '{entityType}' cannot be determined because the specified foreign key {foreignKeyProperties} references entity type '{principalEntityType}' that it is in the same hierarchy as the entity type that it is declared on '{dependentEntityType}'. + /// The entity type related to '{entityType}' cannot be determined because the specified foreign key {foreignKeyProperties} references entity type '{principalEntityType}', which is in the same hierarchy as the entity type which is declared on '{dependentEntityType}'. /// public static string IntraHierarchicalAmbiguousTargetEntityType([CanBeNull] object entityType, [CanBeNull] object foreignKeyProperties, [CanBeNull] object principalEntityType, [CanBeNull] object dependentEntityType) => string.Format( @@ -1098,7 +1098,7 @@ public static string IntraHierarchicalAmbiguousTargetEntityType([CanBeNull] obje entityType, foreignKeyProperties, principalEntityType, dependentEntityType); /// - /// Unable to track an entity of type '{entityType}' because alternate key property '{keyProperty}' is null. If the alternate key is not used in a relationship, then consider using a unique index instead. Unique indexes may contain nulls, while alternate keys must not. + /// Unable to track an entity of type '{entityType}' because alternate key property '{keyProperty}' is null. If the alternate key is not used in a relationship, then consider using a unique index instead. Unique indexes may contain nulls, while alternate keys may not. /// public static string InvalidAlternateKeyValue([CanBeNull] object entityType, [CanBeNull] object keyProperty) => string.Format( @@ -1122,7 +1122,7 @@ public static string InvalidEnumValue([CanBeNull] object argumentName, [CanBeNul argumentName, enumType); /// - /// The expression '{expression}' is invalid inside Include operation. The expression should represent a property access: 't => t.MyProperty'. To target navigations declared on derived types use cast, e.g. 't => ((Derived)t).MyProperty' or 'as' operator, e.g. 't => (t as Derived).MyProperty'. Collection navigation access can be filtered by composing Where, OrderBy(Descending), ThenBy(Descending), Skip or Take operations. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393. + /// The expression '{expression}' is invalid inside an Include operation, since it does not represent a property access: 't => t.MyProperty'. To target navigations declared on derived types, use casting ('t => ((Derived)t).MyProperty') or the 'as' operator ('t => (t as Derived).MyProperty'). Collection navigation access can be filtered by composing Where, OrderBy(Descending), ThenBy(Descending), Skip or Take operations. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393. /// public static string InvalidIncludeExpression([CanBeNull] object expression) => string.Format( @@ -1130,7 +1130,7 @@ public static string InvalidIncludeExpression([CanBeNull] object expression) expression); /// - /// Unable to track an entity of type '{entityType}' because primary key property '{keyProperty}' is null. + /// Unable to track an entity of type '{entityType}' because its primary key property '{keyProperty}' is null. /// public static string InvalidKeyValue([CanBeNull] object entityType, [CanBeNull] object keyProperty) => string.Format( @@ -1138,7 +1138,7 @@ public static string InvalidKeyValue([CanBeNull] object entityType, [CanBeNull] entityType, keyProperty); /// - /// Lambda expression used inside 'Include' is not valid. + /// The lambda expression used inside 'Include' is not valid. /// public static string InvalidLambdaExpressionInsideInclude => GetString("InvalidLambdaExpressionInsideInclude"); @@ -1158,7 +1158,7 @@ public static string InvalidMemberInitBinding => GetString("InvalidMemberInitBinding"); /// - /// The expression '{expression}' is not a valid members access expression. The expression should represent a simple property or field access: 't => t.MyProperty'. When specifying multiple properties or fields use an anonymous type: 't => new {{ t.MyProperty, t.MyField }}'. + /// The expression '{expression}' is not a valid member access expression. The expression should represent a simple property or field access: 't => t.MyProperty'. When specifying multiple properties or fields, use an anonymous type: 't => new {{ t.MyProperty, t.MyField }}'. /// public static string InvalidMembersExpression([CanBeNull] object expression) => string.Format( @@ -1180,7 +1180,7 @@ public static string InvalidPoolSize => GetString("InvalidPoolSize"); /// - /// The properties expression '{expression}' is not valid. The expression should represent a simple property access: 't => t.MyProperty'. When specifying multiple properties use an anonymous type: 't => new {{ t.MyProperty1, t.MyProperty2 }}'. + /// The properties expression '{expression}' is invalid. The expression should represent a simple property access: 't => t.MyProperty'. When specifying multiple properties, use an anonymous type: 't => new {{ t.MyProperty1, t.MyProperty2 }}'. /// [Obsolete] public static string InvalidPropertiesExpression([CanBeNull] object expression) @@ -1206,7 +1206,7 @@ public static string InvalidPropertyListOnNavigation([CanBeNull] object navigati navigation, entityType); /// - /// Invalid relationship has been specified using [InverseProperty] attribute and [ForeignKey] attribute. The navigation '{1_entityType}.{0_navigation}' and the navigation '{3_referencedEntityType}.{2_referencedNavigation}' are related by [InverseProperty] attribute but the [ForeignKey] attribute specified for both navigations have different values. + /// An invalid relationship has been specified using the [InverseProperty] and [ForeignKey] attributes. The navigations '{1_entityType}.{0_navigation}' and '{3_referencedEntityType}.{2_referencedNavigation}' are related by the [InverseProperty] attribute, but the [ForeignKey] attribute specified for both navigations have different values. /// public static string InvalidRelationshipUsingDataAnnotations([CanBeNull] object navigation, [CanBeNull] object entityType, [CanBeNull] object referencedNavigation, [CanBeNull] object referencedEntityType) => string.Format( @@ -1230,7 +1230,7 @@ public static string InvalidSetKeylessOperation([CanBeNull] object entityType) entityType); /// - /// Cannot create a DbSet for '{typeName}' because it is configured as an shared type entity type and should be accessed through entity type name based Set method. + /// Cannot create a DbSet for '{typeName}' because it is configured as an shared type entity type. Access the entity type via the `Set` method overload that accepts an entity type name. /// public static string InvalidSetSharedType([CanBeNull] object typeName) => string.Format( @@ -1246,7 +1246,7 @@ public static string InvalidSetType([CanBeNull] object typeName) typeName); /// - /// Cannot create a DbSet for '{typeName}' because it is configured as an owned entity type and should be accessed through the defining entities. + /// Cannot create a DbSet for '{typeName}' because it is configured as an owned entity type and must be accessed through its owning entity type. /// public static string InvalidSetTypeOwned([CanBeNull] object typeName) => string.Format( @@ -1254,7 +1254,7 @@ public static string InvalidSetTypeOwned([CanBeNull] object typeName) typeName); /// - /// Cannot create a DbSet for '{typeName}' because it is mapped to multiple entity types and should be accessed through the defining entities. + /// Cannot create a DbSet for '{typeName}' because it is mapped to multiple entity types and should be accessed through the owning entities. /// public static string InvalidSetTypeWeak([CanBeNull] object typeName) => string.Format( @@ -1278,7 +1278,7 @@ public static string InvalidType([CanBeNull] object property, [CanBeNull] object property, entityType, valueType, propertyType); /// - /// Invalid type conversion specified in 'Include' call. + /// Invalid type conversion specified in an 'Include' operation. /// public static string InvalidTypeConversationWithInclude => GetString("InvalidTypeConversationWithInclude"); @@ -1330,7 +1330,7 @@ public static string IQueryableProviderNotAsync => GetString("IQueryableProviderNotAsync"); /// - /// The derived type '{derivedType}' cannot have [Key] attribute on property '{property}' since primary key can only be declared on the root type. + /// The derived type '{derivedType}' cannot have the [Key] attribute on property '{property}' since primary keys may only be declared on the root type. /// public static string KeyAttributeOnDerivedEntity([CanBeNull] object derivedType, [CanBeNull] object property) => string.Format( @@ -1378,7 +1378,7 @@ public static string KeyPropertiesWrongEntity([CanBeNull] object keyProperties, keyProperties, entityType); /// - /// The property '{1_entityType}.{0_property}' cannot be marked as nullable/optional because it has been included in a key {keyProperties}. + /// The property '{1_entityType}.{0_property}' cannot be marked as nullable/optional because it has been included in the key {keyProperties}. /// public static string KeyPropertyCannotBeNullable([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object keyProperties) => string.Format( @@ -1394,7 +1394,7 @@ public static string KeyPropertyMustBeReadOnly([CanBeNull] object property, [Can property, entityType); /// - /// The property '{1_entityType}.{0_property}' is part of a key and so cannot be modified or marked as modified. To change the principal of an existing entity with an identifying foreign key first delete the dependent and invoke 'SaveChanges' then associate the dependent with the new principal. + /// The property '{1_entityType}.{0_property}' is part of a key and so cannot be modified or marked as modified. To change the principal of an existing entity with an identifying foreign key, first delete the dependent and invoke 'SaveChanges', and then associate the dependent with the new principal. /// public static string KeyReadOnly([CanBeNull] object property, [CanBeNull] object entityType) => string.Format( @@ -1426,7 +1426,7 @@ public static string MissingBackingField([CanBeNull] object field, [CanBeNull] o field, property, entityType); /// - /// Unable to set up a many-to-many relationship between the entity types '{principalEntityType}' and '{declaringEntityType}' because one of the navigations was not specified. Please provide a navigation in the 'HasMany()' call in 'OnModelCreating'. + /// Unable to set up a many-to-many relationship between the entity types '{principalEntityType}' and '{declaringEntityType}' because one of the navigations was not specified. Please provide a navigation in the 'HasMany' call in 'OnModelCreating'. /// public static string MissingInverseManyToManyNavigation([CanBeNull] object principalEntityType, [CanBeNull] object declaringEntityType) => string.Format( @@ -1450,7 +1450,7 @@ public static string MultipleEntries([CanBeNull] object entityType) entityType); /// - /// Different filters: '{filter1}' and '{filter2}' have been applied on the same included navigation. Only one unique filter per navigation is allowed. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393. + /// The filters '{filter1}' and '{filter2}' have both been configured on the same included navigation. Only one unique filter per navigation is allowed. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393. /// public static string MultipleFilteredIncludesOnSameNavigation([CanBeNull] object filter1, [CanBeNull] object filter2) => string.Format( @@ -1458,7 +1458,7 @@ public static string MultipleFilteredIncludesOnSameNavigation([CanBeNull] object filter1, filter2); /// - /// There are multiple navigations in entity type '{entityType}' which are pointing to same set of properties - '{propertyList}' using [ForeignKey] attribute. + /// There are multiple navigations in entity type '{entityType}' which are pointing to same set of properties using a [ForeignKey] attribute: '{propertyList}' /// public static string MultipleNavigationsSameFk([CanBeNull] object entityType, [CanBeNull] object propertyList) => string.Format( @@ -1474,7 +1474,7 @@ public static string MultipleOwnerships([CanBeNull] object entityType) entityType); /// - /// Services for database providers {storeNames} have been registered in the service provider. Only a single database provider can be registered in a service provider. If possible, ensure that Entity Framework is managing its service provider by removing the call to UseInternalServiceProvider. Otherwise, consider conditionally registering the database provider, or maintaining one service provider per database provider. + /// Services for database providers {storeNames} have been registered in the service provider. Only a single database provider can be registered in a service provider. If possible, ensure that Entity Framework is managing its service provider by removing the call to 'UseInternalServiceProvider'. Otherwise, consider conditionally registering the database provider, or maintaining one service provider per database provider. /// public static string MultipleProvidersConfigured([CanBeNull] object storeNames) => string.Format( @@ -1490,7 +1490,7 @@ public static string MutableKeyProperty([CanBeNull] object keyProperty) keyProperty); /// - /// The index named '{indexName}' on the entity type '{entityType}' with properties {indexPropertyList} is invalid. The property '{propertyName}' has been marked NotMapped or Ignore(). An index cannot use such properties. + /// The index named '{indexName}' on the entity type '{entityType}' with properties {indexPropertyList} is invalid. The property '{propertyName}' has been marked as unmapped via the [NotMapped] attribute or the 'EntityTypeBuilder.Ignore' fluent API. An index cannot use unmapped properties. /// public static string NamedIndexDefinedOnIgnoredProperty([CanBeNull] object indexName, [CanBeNull] object entityType, [CanBeNull] object indexPropertyList, [CanBeNull] object propertyName) => string.Format( @@ -1498,7 +1498,7 @@ public static string NamedIndexDefinedOnIgnoredProperty([CanBeNull] object index indexName, entityType, indexPropertyList, propertyName); /// - /// An index named '{indexName}' on the entity type '{entityType}' specifies properties {indexPropertyList}. But no property with name '{propertyName}' exists on that entity type or any of its base types. + /// An index named '{indexName}' on entity type '{entityType}' specifies properties {indexPropertyList}, but no property with name '{propertyName}' exists on that entity type or any of its base types. /// public static string NamedIndexDefinedOnNonExistentProperty([CanBeNull] object indexName, [CanBeNull] object entityType, [CanBeNull] object indexPropertyList, [CanBeNull] object propertyName) => string.Format( @@ -1594,7 +1594,7 @@ public static string NavigationToKeylessType([CanBeNull] object navigation, [Can navigation, entityType); /// - /// The navigation '{navigation}' cannot be added to the entity type '{entityType}' because the target entity type '{targetType}' is defined in shadow state and navigations properties cannot point to shadow state entities. + /// The navigation '{navigation}' cannot be added to the entity type '{entityType}' because the target entity type '{targetType}' is defined in shadow state, and navigations properties cannot point to shadow state entities. /// public static string NavigationToShadowEntity([CanBeNull] object navigation, [CanBeNull] object entityType, [CanBeNull] object targetType) => string.Format( @@ -1602,7 +1602,7 @@ public static string NavigationToShadowEntity([CanBeNull] object navigation, [Ca navigation, entityType, targetType); /// - /// No field was found backing property '{1_entityType}.{0_property}'. Either name the backing field so that it is picked up by convention, configure the backing field to use, or use a different '{propertyAccessMode}'. + /// No backing field was found for property '{1_entityType}.{0_property}'. Name the backing field so that it is discovered by convention, configure the backing field to use, or use a different '{propertyAccessMode}'. /// public static string NoBackingField([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object propertyAccessMode) => string.Format( @@ -1610,7 +1610,7 @@ public static string NoBackingField([CanBeNull] object property, [CanBeNull] obj property, entityType, propertyAccessMode); /// - /// No field was found backing property '{1_entityType}.{0_property}'. Lazy-loaded navigation properties must have backing fields. Either name the backing field so that it is picked up by convention or configure the backing field to use. + /// No backing field was found for property '{1_entityType}.{0_property}'. Lazy-loaded navigation properties must have backing fields. Either name the backing field so that it is discovered by convention or configure the backing field to use. /// public static string NoBackingFieldLazyLoading([CanBeNull] object property, [CanBeNull] object entityType) => string.Format( @@ -1642,7 +1642,7 @@ public static string NoDefiningNavigation([CanBeNull] object navigation, [CanBeN navigation, entityType, definingEntityType); /// - /// Cannot set discriminator value for entity type '{entityType}' because the root entity type '{rootEntityType}' doesn't have a discriminator property set. + /// Cannot set the discriminator value for entity type '{entityType}' because the root entity type '{rootEntityType}' doesn't have a discriminator property set. /// public static string NoDiscriminatorForValue([CanBeNull] object entityType, [CanBeNull] object rootEntityType) => string.Format( @@ -1718,7 +1718,7 @@ public static string NonClrBaseType([CanBeNull] object entityType, [CanBeNull] o entityType, baseEntityType); /// - /// Property '{entityType}.{property}' cannot be used as a key because it has type '{providerType}' which does not implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Use 'HasConversion()' in 'OnModelCreating' to wrap '{providerType}' with a type that can be compared. + /// Property '{entityType}.{property}' cannot be used as a key because it has type '{providerType}' which does not implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Use 'HasConversion' in 'OnModelCreating' to wrap '{providerType}' with a type that can be compared. /// public static string NonComparableKeyType([CanBeNull] object entityType, [CanBeNull] object property, [CanBeNull] object providerType) => string.Format( @@ -1726,7 +1726,7 @@ public static string NonComparableKeyType([CanBeNull] object entityType, [CanBeN entityType, property, providerType); /// - /// Property '{entityType}.{property}' cannot be used as a key because it has type '{modelType}' and provider type '{providerType}' neither of which implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Make '{modelType}' implement one of these interfaces to use it as a key. + /// Property '{entityType}.{property}' cannot be used as a key because it has type '{modelType}' and provider type '{providerType}', neither of which implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Make '{modelType}' implement one of these interfaces to use it as a key. /// public static string NonComparableKeyTypes([CanBeNull] object entityType, [CanBeNull] object property, [CanBeNull] object modelType, [CanBeNull] object providerType) => string.Format( @@ -1734,7 +1734,7 @@ public static string NonComparableKeyTypes([CanBeNull] object entityType, [CanBe entityType, property, modelType, providerType); /// - /// The navigation '{1_entityType}.{0_navigation}' must be configured in 'OnModelCreating' with an explicit name for the target shared type entity type or excluded by calling 'EntityTypeBuilder.Ignore'. + /// The navigation '{1_entityType}.{0_navigation}' must be configured in 'OnModelCreating' with an explicit name for the target shared type entity type, or excluded by calling 'EntityTypeBuilder.Ignore'. /// public static string NonConfiguredNavigationToSharedType([CanBeNull] object navigation, [CanBeNull] object entityType) => string.Format( @@ -1750,7 +1750,7 @@ public static string NonDefiningOwnership([CanBeNull] object ownershipNavigation ownershipNavigation, definingNavigation, entityType); /// - /// The DbContextOptions passed to the {contextType} constructor must be a DbContextOptions<{contextType}>. When registering multiple DbContext types make sure that the constructor for each context type has a DbContextOptions<TContext> parameter rather than a non-generic DbContextOptions parameter. + /// The DbContextOptions passed to the {contextType} constructor must be a DbContextOptions<{contextType}>. When registering multiple DbContext types, make sure that the constructor for each context type has a DbContextOptions<TContext> parameter rather than a non-generic DbContextOptions parameter. /// public static string NonGenericOptions([CanBeNull] object contextType) => string.Format( @@ -1798,7 +1798,7 @@ public static string NonUniqueRequiredDependentNavigation([CanBeNull] object pri principalEntityType, principalNavigation); /// - /// A parameterless constructor was not found on entity type '{entityType}'. In order to create an instance of '{entityType}' Entity Framework requires that a parameterless constructor be declared. + /// A parameterless constructor was not found on entity type '{entityType}'. In order to create an instance of '{entityType}', Entity Framework requires that a parameterless constructor be declared. /// public static string NoParameterlessConstructor([CanBeNull] object entityType) => string.Format( @@ -1814,7 +1814,7 @@ public static string NoProperty([CanBeNull] object field, [CanBeNull] object ent field, entity, propertyAccessMode); /// - /// The property '{property}' cannot be added to the type '{entityType}' because there was no property type specified and there is no corresponding CLR property or field. To add a shadow state property the property type must be specified. + /// The property '{property}' cannot be added to the type '{entityType}' because no property type was specified and there is no corresponding CLR property or field. To add a shadow state property, the property type must be specified. /// public static string NoPropertyType([CanBeNull] object property, [CanBeNull] object entityType) => string.Format( @@ -1822,13 +1822,13 @@ public static string NoPropertyType([CanBeNull] object property, [CanBeNull] obj property, entityType); /// - /// No database provider has been configured for this DbContext. A provider can be configured by overriding the DbContext.OnConfiguring method or by using AddDbContext on the application service provider. If AddDbContext is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext. + /// No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext. /// public static string NoProviderConfigured => GetString("NoProviderConfigured"); /// - /// Unable to resolve service for type '{service}'. This is often because no database provider has been configured for this DbContext. A provider can be configured by overriding the DbContext.OnConfiguring method or by using AddDbContext on the application service provider. If AddDbContext is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext. + /// Unable to resolve service for type '{service}'. This is often because no database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext. /// public static string NoProviderConfiguredFailedToResolveService([CanBeNull] object service) => string.Format( @@ -1866,7 +1866,7 @@ public static string NotQueryingEnumerable => GetString("NotQueryingEnumerable"); /// - /// The '{1_entityType}.{0_property}' does not have a value set and no value generator is available for properties of type '{propertyType}'. Either set a value for the property before adding the entity or configure a value generator for properties of type '{propertyType}' in 'OnModelCreating'. + /// The property '{1_entityType}.{0_property}' does not have a value set and no value generator is available for properties of type '{propertyType}'. Either set a value for the property before adding the entity or configure a value generator for properties of type '{propertyType}' in 'OnModelCreating'. /// public static string NoValueGenerator([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object propertyType) => string.Format( @@ -1890,7 +1890,7 @@ public static string OptionsExtensionNotFound([CanBeNull] object optionsExtensio optionsExtension); /// - /// The original value for property '{1_entityType}.{0_property}' cannot be accessed because it is not being tracked. Original values are not recorded for most properties of entities when the 'ChangingAndChangedNotifications' strategy is used. To access all original values use a different change tracking strategy such as 'ChangingAndChangedNotificationsWithOriginalValues'. + /// The original value for property '{1_entityType}.{0_property}' cannot be accessed because it is not being tracked. Original values are not recorded for most properties of entities when the 'ChangingAndChangedNotifications' strategy is used. To access all original values, use a different change tracking strategy such as 'ChangingAndChangedNotificationsWithOriginalValues'. /// public static string OriginalValueNotTracked([CanBeNull] object property, [CanBeNull] object entityType) => string.Format( @@ -1906,13 +1906,13 @@ public static string OwnedDerivedType([CanBeNull] object entityType) entityType); /// - /// A tracking query projects owned entity without corresponding owner in result. Owned entities cannot be tracked without their owner. Either include the owner entity in the result or make query non-tracking using 'AsNoTracking()'. + /// A tracking query is attempting to project an owned entity without a corresponding owner in its result, but owned entities cannot be tracked without their owner. Either include the owner entity in the result or make the query non-tracking using 'AsNoTracking'. /// public static string OwnedEntitiesCannotBeTrackedWithoutTheirOwner => GetString("OwnedEntitiesCannotBeTrackedWithoutTheirOwner"); /// - /// The owned entity type '{ownedType}' requires to be referenced from another entity type via a navigation. Add a navigation to an entity type that points at '{ownedType}'. + /// The owned entity type '{ownedType}' must be referenced from another entity type via a navigation. Add a navigation to an entity type that points at '{ownedType}'. /// public static string OwnerlessOwnedType([CanBeNull] object ownedType) => string.Format( @@ -1928,13 +1928,13 @@ public static string PoolingContextCtorError([CanBeNull] object contextType) contextType); /// - /// OnConfiguring cannot be used to modify DbContextOptions when DbContext pooling is enabled. + /// 'OnConfiguring' cannot be used to modify DbContextOptions when DbContext pooling is enabled. /// public static string PoolingOptionsModified => GetString("PoolingOptionsModified"); /// - /// You are configuring a relationship between '{dependentEntityType}' and '{principalEntityType}' but have specified a foreign key targeting '{entityType}'. The foreign key must be targeting a type that is part of the relationship. + /// You are configuring a relationship between '{dependentEntityType}' and '{principalEntityType}', but have specified a foreign key targeting '{entityType}'. The foreign key must target a type that is part of the relationship. /// public static string PrincipalEntityTypeNotInRelationship([CanBeNull] object dependentEntityType, [CanBeNull] object principalEntityType, [CanBeNull] object entityType) => string.Format( @@ -1966,7 +1966,7 @@ public static string PropertyCalledOnNavigation([CanBeNull] object property, [Ca property, entityType); /// - /// The indexer property '{property}' cannot be added to type '{entityType}' because the CLR class contains a member with the same name. + /// The indexer property '{property}' cannot be added to type '{entityType}' because the CLR type contains a member with the same name. /// public static string PropertyClashingNonIndexer([CanBeNull] object property, [CanBeNull] object entityType) => string.Format( @@ -1974,7 +1974,7 @@ public static string PropertyClashingNonIndexer([CanBeNull] object property, [Ca property, entityType); /// - /// The property '{1_entityType}.{0_property}' is marked as null, but this cannot be saved because the property is marked as required. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. + /// The property '{1_entityType}.{0_property}' contains null, but the property is marked as required. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. /// public static string PropertyConceptualNull([CanBeNull] object property, [CanBeNull] object entityType) => string.Format( @@ -1982,7 +1982,7 @@ public static string PropertyConceptualNull([CanBeNull] object property, [CanBeN property, entityType); /// - /// The property '{property}' is marked as null on entity '{entityType}' with the key value '{keyValue}', but this cannot be saved because the property is marked as required. + /// The property '{property}' contains null on entity '{entityType}' with the key value '{keyValue}', but the property is marked as required. /// public static string PropertyConceptualNullSensitive([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object keyValue) => string.Format( @@ -1990,7 +1990,7 @@ public static string PropertyConceptualNullSensitive([CanBeNull] object property property, entityType, keyValue); /// - /// The property '{property}' belongs to entity type '{entityType}' but is being used with an instance of entity type '{expectedType}'. + /// The property '{property}' belongs to entity type '{entityType}', but is being used with an instance of entity type '{expectedType}'. /// public static string PropertyDoesNotBelong([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object expectedType) => string.Format( @@ -2030,13 +2030,13 @@ public static string PropertyIsNavigation([CanBeNull] object property, [CanBeNul property, entityType, propertyMethod, referenceMethod, collectionMethod); /// - /// The EF.Property<T> method may only be used within LINQ queries. + /// The EF.Property<T> method may only be used within Entity Framework LINQ queries. /// public static string PropertyMethodInvoked => GetString("PropertyMethodInvoked"); /// - /// The property '{entityType}.{property}' could not be mapped, because it is of type '{propertyType}' which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. + /// The property '{entityType}.{property}' could not be mapped because it is of type '{propertyType}', which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. /// public static string PropertyNotAdded([CanBeNull] object entityType, [CanBeNull] object property, [CanBeNull] object propertyType) => string.Format( @@ -2052,7 +2052,7 @@ public static string PropertyNotFound([CanBeNull] object property, [CanBeNull] o property, entityType); /// - /// The property '{entityType}.{property}' is of type '{propertyType}' which is not supported by current database provider. Either change the property CLR type or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. + /// The property '{entityType}.{property}' is of type '{propertyType}' which is not supported by the current database provider. Either change the property CLR type, or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. /// public static string PropertyNotMapped([CanBeNull] object entityType, [CanBeNull] object property, [CanBeNull] object propertyType) => string.Format( @@ -2060,7 +2060,7 @@ public static string PropertyNotMapped([CanBeNull] object entityType, [CanBeNull entityType, property, propertyType); /// - /// The property '{1_entityType}.{0_property}' is defined to be read-only after it has been saved, but its value has been modified or marked as modified. + /// The property '{1_entityType}.{0_property}' is defined as read-only after it has been saved, but its value has been modified or marked as modified. /// public static string PropertyReadOnlyAfterSave([CanBeNull] object property, [CanBeNull] object entityType) => string.Format( @@ -2068,7 +2068,7 @@ public static string PropertyReadOnlyAfterSave([CanBeNull] object property, [Can property, entityType); /// - /// The property '{1_entityType}.{0_property}' is defined to be read-only before it is saved, but its value has been set to something other than a temporary or default value. + /// The property '{1_entityType}.{0_property}' is defined as read-only before it has been saved, but its value has been set to something other than a temporary or default value. /// public static string PropertyReadOnlyBeforeSave([CanBeNull] object property, [CanBeNull] object entityType) => string.Format( @@ -2108,13 +2108,13 @@ public static string PropertyWrongType([CanBeNull] object property, [CanBeNull] property, entityType, otherEntityType); /// - /// InitializeStateManager method has been called multiple times on current query context. This method is intended to be called only once before query enumeration starts. + /// The 'InitializeStateManager' method has been called multiple times on the current query context. This method is intended to be called only once before query enumeration starts. /// public static string QueryContextAlreadyInitializedStateManager => GetString("QueryContextAlreadyInitializedStateManager"); /// - /// Materialization condition passed for entity shaper of entity type '{entityType}' is not of correct shape. Materialization condition must be LambdaExpression of 'Func<ValueBuffer, IEntityType>' + /// The materialization condition passed for entity shaper of entity type '{entityType}' is not of the correct shape. A materialization condition must be a LambdaExpression of 'Func<ValueBuffer, IEntityType>' /// public static string QueryEntityMaterializationConditionWrongShape([CanBeNull] object entityType) => string.Format( @@ -2130,7 +2130,7 @@ public static string QueryFailed([CanBeNull] object expression, [CanBeNull] obje expression, visitor); /// - /// The query contains a final projection '{projection}' to type '{queryableType}'. Collections in the final projection must be an 'IEnumerable<T>' type such as 'List<T>'. Consider using 'ToList()' or some other mechanism to convert the 'IQueryable<T>' or 'IOrderedEnumerable<T>' into an 'IEnumerable<T>'. + /// The query contains a final projection '{projection}' to type '{queryableType}'. Collections in the final projection must be an 'IEnumerable<T>' type such as 'List<T>'. Consider using 'ToList' or some other mechanism to convert the 'IQueryable<T>' or 'IOrderedEnumerable<T>' into an 'IEnumerable<T>'. /// public static string QueryInvalidMaterializationType([CanBeNull] object projection, [CanBeNull] object queryableType) => string.Format( @@ -2138,7 +2138,7 @@ public static string QueryInvalidMaterializationType([CanBeNull] object projecti projection, queryableType); /// - /// Translation of '{expression}' failed. Either source is not an entity type or the specified property does not exist on the entity type. + /// Translation of '{expression}' failed. Either the query source is not an entity type, or the specified property does not exist on the entity type. /// public static string QueryUnableToTranslateEFProperty([CanBeNull] object expression) => string.Format( @@ -2146,7 +2146,7 @@ public static string QueryUnableToTranslateEFProperty([CanBeNull] object express expression); /// - /// Translation of member '{member}' on entity type '{entityType}' failed. Possibly the specified member is not mapped. + /// Translation of member '{member}' on entity type '{entityType}' failed. This commonly occurs when the specified member is unmapped. /// public static string QueryUnableToTranslateMember([CanBeNull] object member, [CanBeNull] object entityType) => string.Format( @@ -2162,7 +2162,7 @@ public static string QueryUnableToTranslateMethod([CanBeNull] object declaringTy declaringTypeName, methodName); /// - /// Translation of 'string.Equals' method which takes 'StringComparison' argument is not supported. See https://go.microsoft.com/fwlink/?linkid=2129535 for more information. + /// Translation of the 'string.Equals' overload with a 'StringComparison' parameter is not supported. See https://go.microsoft.com/fwlink/?linkid=2129535 for more information. /// public static string QueryUnableToTranslateStringEqualsWithStringComparison => GetString("QueryUnableToTranslateStringEqualsWithStringComparison"); @@ -2196,7 +2196,7 @@ public static string ReferenceIsCollection([CanBeNull] object property, [CanBeNu property, entityType, referenceMethod, collectionMethod); /// - /// The navigation '{1_entityType}.{0_navigation}' cannot have 'IsLoaded' set to false because the referenced entity is non-null and therefore is loaded. + /// The navigation '{1_entityType}.{0_navigation}' cannot have 'IsLoaded' set to false because the referenced entity is non-null and is therefore loaded. /// public static string ReferenceMustBeLoaded([CanBeNull] object navigation, [CanBeNull] object entityType) => string.Format( @@ -2204,13 +2204,13 @@ public static string ReferenceMustBeLoaded([CanBeNull] object navigation, [CanBe navigation, entityType); /// - /// The principal and dependent ends of the relationship cannot be flipped once foreign key or principal key properties have been specified. + /// The principal and dependent ends of the relationship cannot be inverted once foreign key or principal key properties have been specified. /// public static string RelationshipCannotBeInverted => GetString("RelationshipCannotBeInverted"); /// - /// The association between entity types '{firstType}' and '{secondType}' has been severed but the relationship is either marked as 'Required' or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, then setup the relationship to use cascade deletes. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. + /// The association between entity types '{firstType}' and '{secondType}' has been severed, but the relationship is either marked as required or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, configure the relationship to use cascade deletes. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. /// public static string RelationshipConceptualNull([CanBeNull] object firstType, [CanBeNull] object secondType) => string.Format( @@ -2218,7 +2218,7 @@ public static string RelationshipConceptualNull([CanBeNull] object firstType, [C firstType, secondType); /// - /// The association between entities '{firstType}' and '{secondType}' with the key value '{secondKeyValue}' has been severed but the relationship is either marked as 'Required' or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, then setup the relationship to use cascade deletes. + /// The association between entities '{firstType}' and '{secondType}' with the key value '{secondKeyValue}' has been severed, but the relationship is either marked as required or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, configure the relationship to use cascade deletes. /// public static string RelationshipConceptualNullSensitive([CanBeNull] object firstType, [CanBeNull] object secondType, [CanBeNull] object secondKeyValue) => string.Format( @@ -2234,13 +2234,13 @@ public static string RequiredSkipNavigation([CanBeNull] object entityType, [CanB entityType, navigation); /// - /// 'ObservableCollection<T>.Clear()' is not supported because it uses the 'INotifyCollectionChanged' 'Reset' operation, which does not supply the items removed. Either use multiple calls to 'Remove' or use a notifying collection that supports 'Clear', such as 'Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>'. + /// 'ObservableCollection<T>.Clear' is not supported because it uses the 'INotifyCollectionChanged' 'Reset' operation, which does not supply the items removed. Either use multiple calls to 'Remove', or use a notifying collection that supports 'Clear', such as 'Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>'. /// public static string ResetNotSupported => GetString("ResetNotSupported"); /// - /// Maximum number of retries ({retryLimit}) exceeded while executing database operations with '{strategy}'. See inner exception for the most recent failure. + /// The maximum number of retries ({retryLimit}) was exceeded while executing database operations with '{strategy}'. See the inner exception for the most recent failure. /// public static string RetryLimitExceeded([CanBeNull] object retryLimit, [CanBeNull] object strategy) => string.Format( @@ -2286,7 +2286,7 @@ public static string SeedDatumDuplicateSensitive([CanBeNull] object entityType, entityType, keyValue); /// - /// The seed entity for entity type '{entityType}' cannot be added because the value provided for the property '{property}' is not of the type '{type}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values. + /// The seed entity for entity type '{entityType}' cannot be added because the value provided for the property '{property}' is not of type '{type}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values. /// public static string SeedDatumIncompatibleValue([CanBeNull] object entityType, [CanBeNull] object property, [CanBeNull] object type) => string.Format( @@ -2294,7 +2294,7 @@ public static string SeedDatumIncompatibleValue([CanBeNull] object entityType, [ entityType, property, type); /// - /// The seed entity for entity type '{entityType}' cannot be added because the value '{value}' provided for the property '{property}' is not of the type '{type}'. + /// The seed entity for entity type '{entityType}' cannot be added because the value '{value}' provided for the property '{property}' is not of type '{type}'. /// public static string SeedDatumIncompatibleValueSensitive([CanBeNull] object entityType, [CanBeNull] object value, [CanBeNull] object property, [CanBeNull] object type) => string.Format( @@ -2302,7 +2302,7 @@ public static string SeedDatumIncompatibleValueSensitive([CanBeNull] object enti entityType, value, property, type); /// - /// The seed entity for entity type '{entityType}' cannot be added because there was no value provided for the required property '{property}'. + /// The seed entity for entity type '{entityType}' cannot be added because no value was provided for the required property '{property}'. /// public static string SeedDatumMissingValue([CanBeNull] object entityType, [CanBeNull] object property) => string.Format( @@ -2310,7 +2310,7 @@ public static string SeedDatumMissingValue([CanBeNull] object entityType, [CanBe entityType, property); /// - /// The seed entity for entity type '{entityType}' cannot be added because it has the navigation '{navigation}' set. To seed relationships you need to add the related entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values. + /// The seed entity for entity type '{entityType}' cannot be added because it has the navigation '{navigation}' set. To seed relationships, add the related entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values. /// public static string SeedDatumNavigation([CanBeNull] object entityType, [CanBeNull] object navigation, [CanBeNull] object relatedEntityType, [CanBeNull] object foreignKeyProperties) => string.Format( @@ -2318,7 +2318,7 @@ public static string SeedDatumNavigation([CanBeNull] object entityType, [CanBeNu entityType, navigation, relatedEntityType, foreignKeyProperties); /// - /// The seed entity for entity type '{entityType}' with the key value '{keyValue}' cannot be added because it has the navigation '{navigation}' set. To seed relationships you need to add the related entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}. + /// The seed entity for entity type '{entityType}' with the key value '{keyValue}' cannot be added because it has the navigation '{navigation}' set. To seed relationships, add the related entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}. /// public static string SeedDatumNavigationSensitive([CanBeNull] object entityType, [CanBeNull] object keyValue, [CanBeNull] object navigation, [CanBeNull] object relatedEntityType, [CanBeNull] object foreignKeyProperties) => string.Format( @@ -2390,7 +2390,7 @@ public static string SetOperationWithDifferentIncludesInOperands => GetString("SetOperationWithDifferentIncludesInOperands"); /// - /// Entity type '{entityType}' is in shadow-state. A valid model requires all entity types to have corresponding CLR type. + /// The entity type '{entityType}' is in shadow state. A valid model requires all entity types to have corresponding CLR type. /// public static string ShadowEntity([CanBeNull] object entityType) => string.Format( @@ -2422,7 +2422,7 @@ public static string SingletonRequired([CanBeNull] object scope, [CanBeNull] obj scope, service); /// - /// The foreign key {foreignKeyProperties} cannot be set for the skip navigation '{navigation}' as it uses the join entity type '{joinType}' while the inverse skip navigation '{inverse}' is using the join entity type '{inverseJoinType}'. The inverse should use the same join entity type. + /// The foreign key {foreignKeyProperties} cannot be set for the skip navigation '{navigation}' as it uses the join entity type '{joinType}' while the inverse skip navigation '{inverse}' is using the join entity type '{inverseJoinType}'. The inverse navigation must use the same join entity type. /// public static string SkipInverseMismatchedForeignKey([CanBeNull] object foreignKeyProperties, [CanBeNull] object navigation, [CanBeNull] object joinType, [CanBeNull] object inverse, [CanBeNull] object inverseJoinType) => string.Format( @@ -2430,7 +2430,7 @@ public static string SkipInverseMismatchedForeignKey([CanBeNull] object foreignK foreignKeyProperties, navigation, joinType, inverse, inverseJoinType); /// - /// The skip navigation '{inverse}' using the join entity type '{inverseJoinType}' cannot be set as the inverse of '{navigation}' that uses the join entity type '{joinType}'. The inverse should use the same join entity type. + /// The skip navigation '{inverse}' using the join entity type '{inverseJoinType}' cannot be set as the inverse of '{navigation}', which uses the join entity type '{joinType}'. The inverse navigation must use the same join entity type. /// public static string SkipInverseMismatchedJoinType([CanBeNull] object inverse, [CanBeNull] object inverseJoinType, [CanBeNull] object navigation, [CanBeNull] object joinType) => string.Format( @@ -2462,7 +2462,7 @@ public static string SkipNavigationInUseBySkipNavigation([CanBeNull] object skip skipNavigation, inverseSkipNavigation, referencingEntityType); /// - /// The skip navigation '{1_entityType}.{0_navigation}' doesn't have a foreign key associated with it. Every skip navigation should have a configured foreign key. + /// The skip navigation '{1_entityType}.{0_navigation}' doesn't have a foreign key associated with it. Every skip navigation must have a configured foreign key. /// public static string SkipNavigationNoForeignKey([CanBeNull] object navigation, [CanBeNull] object entityType) => string.Format( @@ -2470,7 +2470,7 @@ public static string SkipNavigationNoForeignKey([CanBeNull] object navigation, [ navigation, entityType); /// - /// The skip navigation '{1_entityType}.{0_navigation}' doesn't have an inverse configured. Every skip navigation should have an inverse skip navigation. + /// The skip navigation '{1_entityType}.{0_navigation}' doesn't have an inverse navigation configured. Every skip navigation should must an inverse skip navigation. /// public static string SkipNavigationNoInverse([CanBeNull] object navigation, [CanBeNull] object entityType) => string.Format( @@ -2486,7 +2486,7 @@ public static string SkipNavigationNonCollection([CanBeNull] object navigation, navigation, entityType); /// - /// The skip navigation '{inverse}' declared on the entity type '{inverseEntityType}' cannot be set as the inverse of '{navigation}' that targets '{targetEntityType}'. The inverse should be declared on the target entity type. + /// The skip navigation '{inverse}' declared on the entity type '{inverseEntityType}' cannot be set as the inverse of '{navigation}', which targets '{targetEntityType}'. The inverse navigation should be declared on the target entity type. /// public static string SkipNavigationWrongInverse([CanBeNull] object inverse, [CanBeNull] object inverseEntityType, [CanBeNull] object navigation, [CanBeNull] object targetEntityType) => string.Format( @@ -2518,7 +2518,7 @@ public static string TempValue([CanBeNull] object property, [CanBeNull] object e property, entityType); /// - /// The property '{1_entityType}.{0_property}' has a temporary value while attempting to change the entity's state to '{state}'. Either set a permanent value explicitly or ensure that the database is configured to generate values for this property. + /// The property '{1_entityType}.{0_property}' has a temporary value while attempting to change the entity's state to '{state}'. Either set a permanent value explicitly, or ensure that the database is configured to generate values for this property. /// public static string TempValuePersists([CanBeNull] object property, [CanBeNull] object entityType, [CanBeNull] object state) => string.Format( @@ -2526,7 +2526,7 @@ public static string TempValuePersists([CanBeNull] object property, [CanBeNull] property, entityType, state); /// - /// The instance of entity type '{runtimeEntityType}' cannot be tracked as the entity type '{entityType}' because they are not in the same hierarchy. + /// The instance of entity type '{runtimeEntityType}' cannot be tracked as the entity type '{entityType}' because the two types are not in the same hierarchy. /// public static string TrackingTypeMismatch([CanBeNull] object runtimeEntityType, [CanBeNull] object entityType) => string.Format( @@ -2534,13 +2534,13 @@ public static string TrackingTypeMismatch([CanBeNull] object runtimeEntityType, runtimeEntityType, entityType); /// - /// Current provider doesn't support System.Transaction. + /// The current provider doesn't support System.Transaction. /// public static string TransactionsNotSupported => GetString("TransactionsNotSupported"); /// - /// The LINQ expression '{expression}' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either 'AsEnumerable()', 'AsAsyncEnumerable()', 'ToList()', or 'ToListAsync()'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. + /// The LINQ expression '{expression}' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. /// public static string TranslationFailed([CanBeNull] object expression) => string.Format( @@ -2548,7 +2548,7 @@ public static string TranslationFailed([CanBeNull] object expression) expression); /// - /// The LINQ expression '{expression}' could not be translated. Additional information: {details} Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either 'AsEnumerable()', 'AsAsyncEnumerable()', 'ToList()', or 'ToListAsync()'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. + /// The LINQ expression '{expression}' could not be translated. Additional information: {details} Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. /// public static string TranslationFailedWithDetails([CanBeNull] object expression, [CanBeNull] object details) => string.Format( @@ -2556,7 +2556,7 @@ public static string TranslationFailedWithDetails([CanBeNull] object expression, expression, details); /// - /// Type '{type}' is not been configured as shared type in the model. Before calling 'UsingEntity', please mark the type as shared or add the entity type in the model as shared entity. + /// The type '{type}' is not been configured as a shared type in the model. Before calling 'UsingEntity', please mark the type as shared or add the entity type in the model as a shared entity. /// public static string TypeNotMarkedAsShared([CanBeNull] object type) => string.Format( @@ -2620,7 +2620,7 @@ public static string UnknownKeyValue([CanBeNull] object entityType, [CanBeNull] entityType, property); /// - /// The unnamed index on the entity type '{entityType}' with properties {indexPropertyList} is invalid. The property '{propertyName}' was ignored by [NotMapped] attribute or 'Ignore()' in 'OnModelCreating'. An index cannot use such properties. + /// The unnamed index on the entity type '{entityType}' with properties {indexPropertyList} is invalid. The property '{propertyName}' was marked as unmapped by [NotMapped] attribute or 'Ignore()' in 'OnModelCreating'. An index cannot use unmapped properties. /// public static string UnnamedIndexDefinedOnIgnoredProperty([CanBeNull] object entityType, [CanBeNull] object indexPropertyList, [CanBeNull] object propertyName) => string.Format( @@ -2628,7 +2628,7 @@ public static string UnnamedIndexDefinedOnIgnoredProperty([CanBeNull] object ent entityType, indexPropertyList, propertyName); /// - /// An unnamed index on the entity type '{entityType}' specifies properties {indexPropertyList}. But no property with name '{propertyName}' exists on that entity type or any of its base types. + /// An unnamed index on the entity type '{entityType}' specifies properties {indexPropertyList}, but no property with name '{propertyName}' exists on that entity type or any of its base types. /// public static string UnnamedIndexDefinedOnNonExistentProperty([CanBeNull] object entityType, [CanBeNull] object indexPropertyList, [CanBeNull] object propertyName) => string.Format( @@ -2636,7 +2636,7 @@ public static string UnnamedIndexDefinedOnNonExistentProperty([CanBeNull] object entityType, indexPropertyList, propertyName); /// - /// The entity type '{entityType}' has a defining navigation and the supplied entity is currently not being tracked. To start tracking this entity call '{referenceCall}' or '{collectionCall}' on the owner entry. + /// The entity type '{entityType}' has a defining navigation and the supplied entity is currently not being tracked. To start tracking this entity, call '{referenceCall}' or '{collectionCall}' on the owner entry. /// public static string UntrackedDependentEntity([CanBeNull] object entityType, [CanBeNull] object referenceCall, [CanBeNull] object collectionCall) => string.Format( @@ -2660,7 +2660,7 @@ public static string ValueGenWithConversion([CanBeNull] object entityType, [CanB entityType, property, converter); /// - /// Calling '{visitMethodName}' is not allowed. Visit expression manually for relevant part. + /// Calling '{visitMethodName}' is not allowed. Visit the expression manually for the relevant part. /// public static string VisitIsNotAllowed([CanBeNull] object visitMethodName) => string.Format( @@ -2668,7 +2668,7 @@ public static string VisitIsNotAllowed([CanBeNull] object visitMethodName) visitMethodName); /// - /// Error generated for warning '{eventName}': {message} This exception can be suppressed or logged by passing event ID '{eventId}' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'. + /// An error was generated for warning '{eventName}': {message} This exception can be suppressed or logged by passing event ID '{eventId}' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'. /// public static string WarningAsErrorTemplate([CanBeNull] object eventName, [CanBeNull] object message, [CanBeNull] object eventId) => string.Format( @@ -2734,7 +2734,7 @@ private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.EntityFrameworkCore.Properties.CoreStrings", typeof(CoreResources).Assembly); /// - /// The foreign key {foreignKeyProperties} on entity type '{entityType}' should not be configured as required since the dependent side cannot be determined. To identify the dependent side of the relationship, configure the foreign key property or the principal key before configuring the foreign key as required in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. + /// The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be configured as required since the dependent side cannot be determined. To identify the dependent side of the relationship, configure the foreign key property or the principal key before configuring the foreign key as required in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. /// public static EventDefinition LogAmbiguousEndRequired([NotNull] IDiagnosticsLogger logger) { @@ -2758,7 +2758,7 @@ public static EventDefinition LogAmbiguousEndRequired([NotNull] } /// - /// Cascade state change of '{entityType}' entity to '{state}' due to deletion of parent '{parentType}' entity. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + /// A cascade state change of an entity of type '{entityType}' to '{state}' occurred due to deletion of its parent entity of type '{parentType}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. /// public static EventDefinition LogCascadeDelete([NotNull] IDiagnosticsLogger logger) { @@ -2782,7 +2782,7 @@ public static EventDefinition LogCascadeDelete([Not } /// - /// '{entityType}' entity changed to '{state}' state due to severed required relationship to parent '{parentType}' entity. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + /// An entity of type '{entityType}' changed to '{state}' state due to severed required relationship to its parent entity of type '{parentType}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. /// public static EventDefinition LogCascadeDeleteOrphan([NotNull] IDiagnosticsLogger logger) { @@ -2806,7 +2806,7 @@ public static EventDefinition LogCascadeDeleteOrpha } /// - /// '{entityType}' entity with key '{keyValues}' changed to '{state}' state due to severed required relationship to parent '{parentType}' entity. + /// An entity of type '{entityType}' with key '{keyValues}' changed to '{state}' state due to severed required relationship to its parent entity of type '{parentType}'. /// public static EventDefinition LogCascadeDeleteOrphanSensitive([NotNull] IDiagnosticsLogger logger) { @@ -2830,7 +2830,7 @@ public static EventDefinition LogCascadeDel } /// - /// Cascade state change of '{entityType}' entity with key '{keyValues}' to '{state}' due to deletion of parent '{parentType}' entity with key '{parentKeyValues}'. + /// A cascade state change of an entity of type '{entityType}' with key '{keyValues}' to '{state}' occurred due to the deletion of its parent entity of type '{parentType}' with key '{parentKeyValues}'. /// public static EventDefinition LogCascadeDeleteSensitive([NotNull] IDiagnosticsLogger logger) { @@ -2854,7 +2854,7 @@ public static EventDefinition LogCa } /// - /// Detected {addedCount} entities added and {removedCount} entities removed from navigation '{entityType}.{property}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + /// {addedCount} entities were added and {removedCount} entities were removed from navigation '{entityType}.{property}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. /// public static EventDefinition LogCollectionChangeDetected([NotNull] IDiagnosticsLogger logger) { @@ -2878,7 +2878,7 @@ public static EventDefinition LogCollectionChangeDetec } /// - /// Detected {addedCount} entities added and {removedCount} entities removed from navigation '{entityType}.{property}' on entity with key '{keyValues}'. + /// {addedCount} entities were added and {removedCount} entities were removed from navigation '{entityType}.{property}' on entity with key '{keyValues}'. /// public static EventDefinition LogCollectionChangeDetectedSensitive([NotNull] IDiagnosticsLogger logger) { @@ -2926,7 +2926,7 @@ public static EventDefinition LogCollectionWithoutComparer([NotN } /// - /// The relationship was separated into two relationships because [ForeignKey] attribute specified on the navigation '{navigationEntityType}.{navigation}' doesn't match the [ForeignKey] attribute specified on the property '{propertyEntityType}.{property}'. + /// The relationship was separated into two relationships because the [ForeignKey] attribute specified on the navigation '{navigationEntityType}.{navigation}' doesn't match the [ForeignKey] attribute specified on the property '{propertyEntityType}.{property}'. /// public static EventDefinition LogConflictingForeignKeyAttributesOnNavigationAndProperty([NotNull] IDiagnosticsLogger logger) { @@ -2950,7 +2950,7 @@ public static EventDefinition LogConflictingFore } /// - /// Conflicting attributes have been applied: the 'Key' attribute on property '{property}' and the 'Keyless' attribute on its entity '{entity}'. Note that the entity will have no key unless you configure one in 'OnModelCreating'. + /// The entity type '{entity}' has the [Keyless] attribute, but the [Key] attribute was specified on property '{property}'; the two are incompatible, consider removing one. Note that the entity will have no key unless you configure one in 'OnModelCreating'. /// public static EventDefinition LogConflictingKeylessAndKeyAttributes([NotNull] IDiagnosticsLogger logger) { @@ -2974,7 +2974,7 @@ public static EventDefinition LogConflictingKeylessAndKeyAttribu } /// - /// There are multiple relationships between '{dependentEntityType}' and '{principalEntityType}' without configured foreign key properties causing Entity Framework to create shadow properties on '{dependentType}' with names dependent on the discovery order. + /// There are multiple relationships between '{dependentEntityType}' and '{principalEntityType}' without configured foreign key properties. This will cause Entity Framework to create shadow properties on '{dependentType}' with names dependent on the discovery order. /// public static EventDefinition LogConflictingShadowForeignKeys([NotNull] IDiagnosticsLogger logger) { @@ -3046,7 +3046,7 @@ public static EventDefinition LogContextInitiali } /// - /// An attempt was made to lazy-load navigation '{navigation}' on detached entity of type '{entityType}'. Lazy-loading is not supported for detached entities or entities that are loaded with 'AsNoTracking()'. + /// An attempt was made to lazy-load navigation '{navigation}' on a detached entity of type '{entityType}'. Lazy-loading is not supported for detached entities or entities that are loaded with 'AsNoTracking'. /// public static EventDefinition LogDetachedLazyLoading([NotNull] IDiagnosticsLogger logger) { @@ -3118,7 +3118,7 @@ public static EventDefinition LogDetectChangesStarting([NotNull] IDiagno } /// - /// The same entity is being tracked as different weak entity types '{dependent1}' and '{dependent2}'. If a property value changes it will result in two store changes, which might not be the desired outcome. + /// The same entity is being tracked as different weak entity types '{dependent1}' and '{dependent2}'. If a property value changes, it will result in two store changes, which might not be the desired outcome. /// public static EventDefinition LogDuplicateDependentEntityTypeInstance([NotNull] IDiagnosticsLogger logger) { @@ -3190,7 +3190,7 @@ public static EventDefinition LogExceptionDuringSaveCha } /// - /// A transient exception has been encountered during execution and the operation will be retried after {delay}ms.{newline}{error} + /// A transient exception occurred during execution. The operation will be retried after {delay}ms.{newline}{error} /// public static EventDefinition LogExecutionStrategyRetrying([NotNull] IDiagnosticsLogger logger) { @@ -3214,7 +3214,7 @@ public static EventDefinition LogExecutionStrategyRetryi } /// - /// Query uses First/FirstOrDefault operation without OrderBy and filter, which may lead to unpredictable results. + /// The query uses the First/FirstOrDefault operator without OrderBy and filter operators. This may lead to unpredictable results. /// public static EventDefinition LogFirstWithoutOrderByAndFilter([NotNull] IDiagnosticsLogger logger) { @@ -3238,7 +3238,7 @@ public static EventDefinition LogFirstWithoutOrderByAndFilter([NotNull] IDiagnos } /// - /// Navigations '{dependentEntityType}.{dependentNavigation}' and '{principalEntityType}.{principalNavigation}' were separated into two relationships as [ForeignKey] attribute was specified on navigations on both sides. + /// Navigations '{dependentEntityType}.{dependentNavigation}' and '{principalEntityType}.{principalNavigation}' were separated into two relationships as the [ForeignKey] attribute was specified on navigations on both sides. /// public static EventDefinition LogForeignKeyAttributesOnBothNavigations([NotNull] IDiagnosticsLogger logger) { @@ -3262,7 +3262,7 @@ public static EventDefinition LogForeignKeyAttri } /// - /// Navigations '{dependentEntityType}.{dependentNavigation}' and '{principalEntityType}.{principalNavigation}' were separated into two relationships as [ForeignKey] attribute was specified on properties '{dependentProperty}' and '{principalProperty}' on both sides. + /// Navigations '{dependentEntityType}.{dependentNavigation}' and '{principalEntityType}.{principalNavigation}' were separated into two relationships as the [ForeignKey] attribute was specified on properties '{dependentProperty}' and '{principalProperty}' on both sides. /// public static EventDefinition LogForeignKeyAttributesOnBothProperties([NotNull] IDiagnosticsLogger logger) { @@ -3286,7 +3286,7 @@ public static EventDefinition Lo } /// - /// Foreign key property '{entityType}.{property}' detected as changed. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see property values. + /// The foreign key property '{entityType}.{property}' was detected as changed. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see property values. /// public static EventDefinition LogForeignKeyChangeDetected([NotNull] IDiagnosticsLogger logger) { @@ -3310,7 +3310,7 @@ public static EventDefinition LogForeignKeyChangeDetected([NotNu } /// - /// Foreign key property '{entityType}.{property}' detected as changed from '{oldValue}' to '{newValue}' for entity with key '{keyValues}'. + /// The foreign key property '{entityType}.{property}' was detected as changed from '{oldValue}' to '{newValue}' for entity with key '{keyValues}'. /// public static EventDefinition LogForeignKeyChangeDetectedSensitive([NotNull] IDiagnosticsLogger logger) { @@ -3358,7 +3358,7 @@ public static EventDefinition LogIncompatibleMat } /// - /// Invalid include path '{navigationChain}', couldn't find navigation for '{navigationName}'. + /// Invalid Include path '{navigationChain}': couldn't find navigation for '{navigationName}'. /// public static EventDefinition LogInvalidIncludePath([NotNull] IDiagnosticsLogger logger) { @@ -3406,7 +3406,7 @@ public static EventDefinition LogLazyLoadOnDisposedContext([NotN } /// - /// More than twenty 'IServiceProvider' instances have been created for internal use by Entity Framework. This is commonly caused by injection of a new singleton service instance into every DbContext instance. For example, calling UseLoggerFactory passing in a new instance each time--see https://go.microsoft.com/fwlink/?linkid=869049 for more details. Consider reviewing calls on 'DbContextOptionsBuilder' that may require new service providers to be built. + /// More than twenty 'IServiceProvider' instances have been created for internal use by Entity Framework. This is commonly caused by injection of a new singleton service instance into every DbContext instance. For example, calling 'UseLoggerFactory' passing in a new instance each time--see https://go.microsoft.com/fwlink/?linkid=869049 for more details. This may lead to performance issues, consider reviewing calls on 'DbContextOptionsBuilder' that may require new service providers to be built. /// public static EventDefinition LogManyServiceProvidersCreated([NotNull] IDiagnosticsLogger logger) { @@ -3430,7 +3430,7 @@ public static EventDefinition LogManyServiceProvidersCreated([NotNull] IDiagnost } /// - /// There are multiple navigations ({navigations}) configured with [InverseProperty] attribute that point to the same inverse navigation '{inverseNavigation}'. + /// There are multiple navigations ({navigations}) configured with [InverseProperty] attribute which point to the same inverse navigation '{inverseNavigation}'. /// public static EventDefinition LogMultipleInversePropertiesSameTarget([NotNull] IDiagnosticsLogger logger) { @@ -3478,7 +3478,7 @@ public static EventDefinition LogMultipleNavigat } /// - /// Primary key hasn't been configured by convention as both properties '{firstProperty}' and '{secondProperty}' could be used as the primary key for the entity type '{entityType}'. This message can be disregarded if explicit configuration has been specified in 'OnModelCreating'. + /// A primary key hasn't been configured by convention as both properties '{firstProperty}' and '{secondProperty}' could be used as the primary key for the entity type '{entityType}'. This message can be disregarded if explicit configuration has been specified in 'OnModelCreating'. /// public static EventDefinition LogMultiplePrimaryKeyCandidates([NotNull] IDiagnosticsLogger logger) { @@ -3599,7 +3599,7 @@ public static EventDefinition LogNonNullableInverted([NotNull] I } /// - /// '{principalEntityType}.{principalNavigation}' may still be null at runtime despite being declared as non-nullable since only the navigation to principal '{dependentEntityType}.{dependentNavigation}' can be configured as required. + /// '{principalEntityType}.{principalNavigation}' may still be null at runtime despite being declared as non-nullable, since only the navigation to principal '{dependentEntityType}.{dependentNavigation}' can be configured as required. /// [Obsolete] public static EventDefinition LogNonNullableReferenceOnBothNavigations([NotNull] IDiagnosticsLogger logger) @@ -3624,7 +3624,7 @@ public static EventDefinition LogNonNullableRefe } /// - /// '{principalEntityType}.{principalNavigation}' may still be null at runtime despite being declared as non-nullable since only the navigation to principal can be configured as required. + /// '{principalEntityType}.{principalNavigation}' may still be null at runtime despite being declared as non-nullable, since only the navigation to principal can be configured as required. /// [Obsolete] public static EventDefinition LogNonNullableReferenceOnDependent([NotNull] IDiagnosticsLogger logger) @@ -3697,7 +3697,7 @@ public static EventDefinition LogOptimisticConcurrencyException([NotN } /// - /// Entity '{principalEntityType}' has global query filter defined and is a required end of a relationship with the entity '{declaringEntityType}'. This may lead to unexpected results when the required entity is filtered out. Either use optional navigation or define matching query filters for both entities in the navigation. See https://go.microsoft.com/fwlink/?linkid=2131316 for more information. + /// Entity '{principalEntityType}' has a global query filter defined and is the required end of a relationship with the entity '{declaringEntityType}'. This may lead to unexpected results when the required entity is filtered out. Either configure the navigation as optional, or define matching query filters for both entities in the navigation. See https://go.microsoft.com/fwlink/?linkid=2131316 for more information. /// public static EventDefinition LogPossibleIncorrectRequiredNavigationWithQueryFilterInteraction([NotNull] IDiagnosticsLogger logger) { @@ -3721,7 +3721,7 @@ public static EventDefinition LogPossibleIncorrectRequiredNaviga } /// - /// Collection navigations are only considered null if their parent entity is null. Use '.Any()' to check whether collection navigation '{navigationPath}' is empty. + /// Collection navigations are only considered null if their parent entity is null. Use 'Any' to check whether collection navigation '{navigationPath}' is empty. /// public static EventDefinition LogPossibleUnintendedCollectionNavigationNullComparison([NotNull] IDiagnosticsLogger logger) { @@ -3769,7 +3769,7 @@ public static EventDefinition LogPossibleUnintendedReferenceComp } /// - /// Unchanged '{entityType}.{property}' detected as changed and will be marked as modified. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see property values. + /// The unchanged property '{entityType}.{property}' was detected as changed and will be marked as modified. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see property values. /// public static EventDefinition LogPropertyChangeDetected([NotNull] IDiagnosticsLogger logger) { @@ -3793,7 +3793,7 @@ public static EventDefinition LogPropertyChangeDetected([NotNull } /// - /// Unchanged '{entityType}.{property}' detected as changed from '{oldValue}' to '{newValue}' and will be marked as modified for entity with key '{keyValues}'. + /// The unchanged property '{entityType}.{property}' was detected as changed from '{oldValue}' to '{newValue}' and will be marked as modified for entity with key '{keyValues}'. /// public static EventDefinition LogPropertyChangeDetectedSensitive([NotNull] IDiagnosticsLogger logger) { @@ -3865,7 +3865,7 @@ public static EventDefinition LogQueryExecutionPlanned([NotNull] IDiagno } /// - /// 'AddEntityFramework*' was called on the service provider, but 'UseInternalServiceProvider' wasn't called in the DbContext options configuration. Remove the 'AddEntityFramework*' call as in most cases it's not needed and might cause conflicts with other products and services registered in the same service provider. + /// 'AddEntityFramework*' was called on the service provider, but 'UseInternalServiceProvider' wasn't called in the DbContext options configuration. Consider removing the 'AddEntityFramework*' call, as in most cases it's not needed and may cause conflicts with other products and services registered in the same service provider. /// public static EventDefinition LogRedundantAddServicesCall([NotNull] IDiagnosticsLogger logger) { @@ -3889,7 +3889,7 @@ public static EventDefinition LogRedundantAddServicesCall([NotNull] IDiagnostics } /// - /// The foreign key {redundantForeignKey} on entity type '{entityType} targets itself, it should be removed since it serves no purpose. + /// The foreign key {redundantForeignKey} on entity type '{entityType} targets itself. Consider removing it since it serves no purpose. /// public static EventDefinition LogRedundantForeignKey([NotNull] IDiagnosticsLogger logger) { @@ -3937,7 +3937,7 @@ public static EventDefinition LogRedundantIndexRemoved([ } /// - /// The navigation '{entityType}.{property}' detected as changed. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + /// The navigation '{entityType}.{property}' was detected as changed. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. /// public static EventDefinition LogReferenceChangeDetected([NotNull] IDiagnosticsLogger logger) { @@ -3961,7 +3961,7 @@ public static EventDefinition LogReferenceChangeDetected([NotNul } /// - /// The navigation '{entityType}.{property}' for entity with key '{keyValues}' detected as changed. + /// The navigation '{entityType}.{property}' for entity with key '{keyValues}' was detected as changed. /// public static EventDefinition LogReferenceChangeDetectedSensitive([NotNull] IDiagnosticsLogger logger) { @@ -4010,7 +4010,7 @@ public static EventDefinition LogRequiredAttributeInverted([NotN } /// - /// The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because there is also a [Required] attribute on '{dependentEntityType}.{dependentNavigation}'. [Required] attribute should only be specified on the dependent side of the relationship. + /// The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because there is also a [Required] attribute on '{dependentEntityType}.{dependentNavigation}'. The [Required] attribute should only be specified on the dependent side of the relationship. /// [Obsolete] public static EventDefinition LogRequiredAttributeOnBothNavigations([NotNull] IDiagnosticsLogger logger) @@ -4035,7 +4035,7 @@ public static EventDefinition LogRequiredAttribu } /// - /// The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because it is a collection. [Required] attribute should only be specified on reference navigations pointing to the principal side of the relationship. + /// The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because it is a collection. The [Required] attribute should only be specified on reference navigations pointing to the principal side of the relationship. /// public static EventDefinition LogRequiredAttributeOnCollection([NotNull] IDiagnosticsLogger logger) { @@ -4059,7 +4059,7 @@ public static EventDefinition LogRequiredAttributeOnCollection([ } /// - /// The [Required] attribute on '{principalEntityType}.{principalNavigation}' is invalid. [Required] attribute should only be specified on the navigation pointing to the principal side of the relationship. To change the dependent side configure the foreign key properties using [ForeignKey] attribute or in 'OnModelCreating'. + /// The [Required] attribute on '{principalEntityType}.{principalNavigation}' is invalid. The [Required] attribute can only be specified on the navigation pointing to the principal side of the relationship. To change the dependent side, configure the foreign key properties using the [ForeignKey] attribute or in 'OnModelCreating'. /// [Obsolete] public static EventDefinition LogRequiredAttributeOnDependent([NotNull] IDiagnosticsLogger logger) @@ -4084,7 +4084,7 @@ public static EventDefinition LogRequiredAttributeOnDependent([N } /// - /// The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because it is a skip navigation. Instead configure the underlying foreign keys in 'OnModelCreating'. + /// The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because it is a skip navigation. Consider configuring the underlying foreign keys in 'OnModelCreating' instead. /// public static EventDefinition LogRequiredAttributeOnSkipNavigation([NotNull] IDiagnosticsLogger logger) { @@ -4108,7 +4108,7 @@ public static EventDefinition LogRequiredAttributeOnSkipNavigati } /// - /// Query uses a row limiting operation (Skip/Take) without OrderBy, which may lead to unpredictable results. + /// The query uses a row limiting operator (Skip/Take) without an OrderBy operator. This may lead to unpredictable results. /// public static EventDefinition LogRowLimitingOperationWithoutOrderBy([NotNull] IDiagnosticsLogger logger) { @@ -4180,7 +4180,7 @@ public static EventDefinition LogSaveChangesStarting([NotNull] IDiagnost } /// - /// Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data, this mode should only be enabled during development. + /// Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development. /// public static EventDefinition LogSensitiveDataLoggingEnabled([NotNull] IDiagnosticsLogger logger) { @@ -4276,7 +4276,7 @@ public static EventDefinition LogShadowPropertyCreated([NotNull] } /// - /// Detected {addedCount} entities added and {removedCount} entities removed from skip navigation '{entityType}.{property}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + /// {addedCount} entities were added and {removedCount} entities were removed from skip navigation '{entityType}.{property}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. /// public static EventDefinition LogSkipCollectionChangeDetected([NotNull] IDiagnosticsLogger logger) { @@ -4300,7 +4300,7 @@ public static EventDefinition LogSkipCollectionChangeD } /// - /// Detected {addedCount} entities added and {removedCount} entities removed from skip navigation '{entityType}.{property}' on entity with key '{keyValues}'. + /// {addedCount} entities were added and {removedCount} entities were removed from skip navigation '{entityType}.{property}' on entity with key '{keyValues}'. /// public static EventDefinition LogSkipCollectionChangeDetectedSensitive([NotNull] IDiagnosticsLogger logger) { @@ -4372,7 +4372,7 @@ public static EventDefinition LogStartedTrackingSensitiv } /// - /// An '{entityType}' entity tracked by '{contextType}' changed from '{oldState}' to '{newState}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + /// An entity of type '{entityType}' tracked by '{contextType}' changed state from '{oldState}' to '{newState}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. /// public static EventDefinition LogStateChanged([NotNull] IDiagnosticsLogger logger) { @@ -4396,7 +4396,7 @@ public static EventDefinition LogState } /// - /// The '{entityType}' entity with key '{keyValues}' tracked by '{contextType}' changed from '{oldState}' to '{newState}'. + /// The '{entityType}' entity with key '{keyValues}' tracked by '{contextType}' changed state from '{oldState}' to '{newState}'. /// public static EventDefinition LogStateChangedSensitive([NotNull] IDiagnosticsLogger logger) { diff --git a/src/EFCore/Properties/CoreStrings.resx b/src/EFCore/Properties/CoreStrings.resx index 45ab23f6e34..d1486b88be9 100644 --- a/src/EFCore/Properties/CoreStrings.resx +++ b/src/EFCore/Properties/CoreStrings.resx @@ -118,13 +118,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The corresponding CLR type for entity type '{entityType}' is not instantiable and there is no derived entity type in the model that corresponds to a concrete CLR type. + The corresponding CLR type for entity type '{entityType}' cannot be instantiated, and there is no derived entity type in the model that corresponds to a concrete CLR type. Cannot add an entity type with type '{typeName}' to the model as it is a dynamically-generated proxy type. - The entity type '{entityType}' has a defining navigation and the supplied entity is currently referenced from several owner entities. To access the entry for a particular reference call '{targetEntryCall}' on the owner entry. + The entity type '{entityType}' has a defining navigation and the supplied entity is currently referenced from several owner entities. To access the entry for a particular reference, call '{targetEntryCall}' on the owner entry. The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be configured as having a required dependent since the dependent side cannot be determined. To identify the dependent side of the relationship, configure the foreign key property in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. @@ -133,16 +133,16 @@ The navigation '{entityType}.{navigation}' cannot be configured as required since the dependent side of the underlying foreign key {foreignKeyProperties} cannot be determined. To identify the dependent side of the relationship, configure the foreign key property in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. - The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be flipped to entity type '{principalEntityType}' since it was configured as required before the dependent side was configured. Configure the foreign key property or the principal key before configuring the foreign key as required. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. + The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be inverted to entity type '{principalEntityType}' since it was configured as required before the dependent side was configured. Configure the foreign key property or the principal key before configuring the foreign key as required. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. - Both relationships between '{firstDependentToPrincipalNavigationSpecification}' and '{firstPrincipalToDependentNavigationSpecification}' and between '{secondDependentToPrincipalNavigationSpecification}' and '{secondPrincipalToDependentNavigationSpecification}' could use {foreignKeyProperties} as the foreign key. To resolve this configure the foreign key properties explicitly in 'OnModelCreating' on at least one of the relationships. + Both relationships between '{firstDependentToPrincipalNavigationSpecification}' and '{firstPrincipalToDependentNavigationSpecification}' and between '{secondDependentToPrincipalNavigationSpecification}' and '{secondPrincipalToDependentNavigationSpecification}' could use {foreignKeyProperties} as the foreign key. To resolve this, configure the foreign key properties explicitly in 'OnModelCreating' on at least one of the relationships. - The dependent side could not be determined for the one-to-one relationship between '{dependentToPrincipalNavigationSpecification}' and '{principalToDependentNavigationSpecification}'. To identify the dependent side of the relationship, configure the foreign key property. If these navigations should not be part of the same relationship configure them independently via separate method chains in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. + The dependent side could not be determined for the one-to-one relationship between '{dependentToPrincipalNavigationSpecification}' and '{principalToDependentNavigationSpecification}'. To identify the dependent side of the relationship, configure the foreign key property. If these navigations should not be part of the same relationship, configure them independently via separate method chains in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. - Unable to determine the owner for the relationship between '{entityTypeNavigationSpecification}' and '{otherEntityType}' as both types have been marked as owned. Either manually configure the ownership, or ignore the corresponding navigations using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. + Unable to determine the owner for the relationship between '{entityTypeNavigationSpecification}' and '{otherEntityType}' as both types have been marked as owned. Either manually configure the ownership, or ignore the corresponding navigations using the [NotMapped] attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. The service property '{property}' of type '{serviceType}' cannot be added to the entity type '{entityType}' because there is another property of the same type. Ignore one of the properties using the [NotMapped] attribute or 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. @@ -169,7 +169,7 @@ The filter expression '{filter}' specified for entity type '{entityType}' is invalid. The expression must accept a single parameter of type '{clrType}' and return bool. - The filter expression '{filter}' cannot be specified for owned entity type '{entityType}'. A filter may only be applied to the entity that is not owned. + The filter expression '{filter}' cannot be specified for owned entity type '{entityType}'. A filter may only be applied to an entity type that is not owned. The type '{givenType}' cannot be used as a value generator because it does not inherit from '{expectedType}'. Make sure to inherit value generators from '{expectedType}'. @@ -184,10 +184,10 @@ The property '{1_entityType}.{0_property}' cannot be marked as nullable/optional because the property is a part of a key. Any property can be marked as non-nullable/required, but only properties of nullable types and which are not part of a key can be marked as nullable/optional. - Unable to convert queryable method to enumerable method. This is likely an issue in Entity Framework, please file an issue at https://go.microsoft.com/fwlink/?linkid=2142044. + Unable to convert a queryable method to an enumerable method. This is likely an issue in Entity Framework, please file an issue at https://go.microsoft.com/fwlink/?linkid=2142044. - Cannot create instance of value generator type '{generatorType}'. Ensure that the type is instantiable and has a parameterless constructor, or use the overload of HasValueGenerator that accepts a delegate. + Cannot create an instance of value generator type '{generatorType}'. Ensure that the type can be instantiated and has a parameterless constructor, or use the overload of 'HasValueGenerator' that accepts a delegate. The navigation '{1_entityType}.{0_navigation}' cannot be loaded because the entity is not being tracked. Navigations can only be loaded for tracked entities. @@ -196,13 +196,13 @@ The type '{type}' cannot be marked as a shared type since an entity type with the same CLR type already exists in the model. - Unable to create an instance of entity type '{entityType}' because it is abstract. Either make it non-abstract or consider mapping at least one derived type. + Unable to create an instance of entity type '{entityType}' because it is abstract. Consider making make it non-abstract or mapping at least one derived type. - There is no navigation '{1_entityType}.{0_navigationName}'. Please add the navigation to the entity type before configuring it. + Navigation '{1_entityType}.{0_navigationName}' was not found. Please add the navigation to the entity type before configuring it. - The entity type '{entityType}' is configured to use the '{changeTrackingStrategy}' change tracking strategy but does not implement the required '{notificationInterface}' interface. Implement '{notificationInterface}' on '{entityType}' or use a different change tracking strategy. + The entity type '{entityType}' is configured to use the '{changeTrackingStrategy}' change tracking strategy, but does not implement the required '{notificationInterface}' interface. Implement '{notificationInterface}' on '{entityType}' or use a different change tracking strategy. Unable to save changes because a circular dependency was detected in the data to be saved: '{cycle}'. @@ -211,13 +211,13 @@ The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{baseEntityType}' is a descendant of '{entityType}'. Review your model configuration. - The shared-type entity type '{entityType}' cannot be added because the model already contains an entity type with the same name but a different CLR type '{otherClrType}'. Ensure all entity type names are unique. + The shared-type entity type '{entityType}' cannot be added because the model already contains an entity type with the same name, but with a different CLR type '{otherClrType}'. Ensure all entity type names are unique. - There is already an entity type named '{ownedTypeName}'. Use a different name when configuring the ownership '{ownerEntityType}.{navigation}' in 'OnModelCreating'. + An entity type named '{ownedTypeName}' has already been added to the model. Use a different name when configuring the ownership '{ownerEntityType}.{navigation}' in 'OnModelCreating'. - The type '{entityType}' cannot be marked as owned because the derived entity type - '{derivedType}' has been configured as non-owned. Either don't configure '{derivedType}' as non-owned or call 'HasBaseType(null)' for it in 'OnModelCreating'. + The type '{entityType}' cannot be marked as owned because the derived entity type '{derivedType}' has been configured as non-owned. Either don't configure '{derivedType}' as non-owned, or call 'HasBaseType(null)' for it in 'OnModelCreating'. The type '{entityType}' cannot be marked as owned because a non-owned entity type with the same name already exists. @@ -238,13 +238,13 @@ The entity type '{entityType}' cannot be added to the model because an entity type with a defining navigation with the same name already exists. - The client projection contains a reference to a constant expression of '{constantType}' which is being passed as an argument to the method '{methodName}'. This could potentially cause a memory leak. Consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. + The client projection contains a reference to a constant expression of '{constantType}' which is being passed as an argument to the method '{methodName}'. This could potentially cause a memory leak; consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. - The client projection contains a reference to a constant expression of '{constantType}' through the instance method '{methodName}'. This could potentially cause a memory leak. Consider making the method static so that it does not capture constant in the instance. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. + The client projection contains a reference to a constant expression of '{constantType}' through the instance method '{methodName}'. This could potentially cause a memory leak; consider making the method static so that it does not capture constant in the instance. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. - The client projection contains a reference to a constant expression of '{constantType}'. This could potentially cause a memory leak. Consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. + The client projection contains a reference to a constant expression of '{constantType}'. This could potentially cause a memory leak; consider assigning this constant to a local variable and using the variable in the query instead. See https://go.microsoft.com/fwlink/?linkid=2103067 for more information. The property '{property}' cannot exist on type '{entityType}' because the type is marked as shadow state while the property is not. Shadow state types can only contain shadow state properties. @@ -253,34 +253,34 @@ The property '{1_entityType}.{0_property}' is being accessed using '{collectionMethod}', but is defined in the model as a non-collection, reference navigation. Use '{referenceMethod}' to access reference navigation properties. - Comparer for type '{type}' cannot be used for '{entityType}.{propertyName}' because its type is '{propertyType}'. + The comparer for type '{type}' cannot be used for '{entityType}.{propertyName}' because its type is '{propertyType}'. - There are multiple properties with [ForeignKey] attribute pointing to navigation '{1_entityType}.{0_navigation}'. To define a composite foreign key using data annotations, use [ForeignKey] attribute on navigation. + There are multiple properties with the [ForeignKey] attribute pointing to navigation '{1_entityType}.{0_navigation}'. To define a composite foreign key using data annotations, use the [ForeignKey] attribute on the navigation. - Entity type '{entityType}' has multiple properties with the [Key] attribute. Composite primary keys can only be set using 'HasKey' in 'OnModelCreating'. + The entity type '{entityType}' has multiple properties with the [Key] attribute. Composite primary keys can only be set using 'HasKey' in 'OnModelCreating'. - A second operation started on this context before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913. + A second operation was started on this context before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913. Property '{1_entityType}.{0_property}' matches both '{field1}' and '{field2}' by convention. Explicitly specify the backing field to use with 'HasField' in 'OnModelCreating'. - There are multiple [ForeignKey] attributes which are pointing to same set of properties - '{propertyList}' on entity type '{entityType}'. + There are multiple [ForeignKey] attributes which are pointing to same set of properties '{propertyList}' on entity type '{entityType}'. The property or navigation '{member}' cannot be added to the entity type '{entityType}' because a property or navigation with the same name already exists on entity type '{conflictingEntityType}'. - Cannot create a relationship between '{newPrincipalNavigationSpecification}' and '{newDependentNavigationSpecification}', because there already is a relationship between '{existingPrincipalNavigationSpecification}' and '{existingDependentNavigationSpecification}'. Navigation can only participate in a single relationship. If you want to override an existing relationship call 'Ignore' on the navigation '{newDependentNavigationSpecification}' first in 'OnModelCreating'. + Cannot create a relationship between '{newPrincipalNavigationSpecification}' and '{newDependentNavigationSpecification}' because a relationship already exists between '{existingPrincipalNavigationSpecification}' and '{existingDependentNavigationSpecification}'. Navigation properties can only participate in a single relationship. If you want to override an existing relationship call 'Ignore' on the navigation '{newDependentNavigationSpecification}' first in 'OnModelCreating'. cannot bind '{failedBinds}' in '{parameters}' - The constructors '{firstConstructor}' and '{secondConstructor}' were found with the same number of parameters that could both be used by Entity Framework. The constructor to use must be configured in 'OnModelCreating'. + The constructors '{firstConstructor}' and '{secondConstructor}' have the same number of parameters, and can both be used by Entity Framework. The constructor to be used must be configured in 'OnModelCreating'. No suitable constructor was found for entity type '{entityType}'. The following constructors had parameters that could not be bound to properties of the entity type: {constructors}. @@ -298,16 +298,16 @@ Converter for model type '{converterType}' cannot be used for '{entityType}.{propertyName}' because its type is '{propertyType}'. - Cannot compose converter from '{typeOneIn}' to '{typeOneOut}' with converter from '{typeTwoIn}' to '{typeTwoOut}' because the output type of the first converter is different from the input type of the second converter. + Cannot compose converter from '{typeOneIn}' to '{typeOneOut}' with converter from '{typeTwoIn}' to '{typeTwoOut}' because the output type of the first converter doesn't match the input type of the second converter. - The extension method '{method}' is being used with a custom implementation of '{interfaceType}'. Use of custom implementations of the Entity Framework metadata interfaces is not supported. Consider deriving from '{concreteType}' instead. Please contact the Entity Framework team if you have a compelling case for a custom implementation of the metadata interfaces so that we can consider ways to achieve this. + The extension method '{method}' is being used with a custom implementation of '{interfaceType}'. Use of custom implementations of the Entity Framework metadata interfaces is not supported, consider deriving from '{concreteType}' instead. Please contact the Entity Framework team if you have a compelling case for a custom implementation of the metadata interfaces so that we can consider ways to achieve this. - Data binding directly to 'DbSet.Local' is not supported since it does not provide a stable ordering. For WPF bind to 'DbSet.Local.ToObservableCollection'. For WinForms bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms bind to 'DbSet.ToList' or use Model Binding. + Data binding directly to 'DbSet.Local' is not supported since it does not provide a stable ordering. For WPF, bind to 'DbSet.Local.ToObservableCollection'. For WinForms, bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms, bind to 'DbSet.ToList' or use Model Binding. - Data binding directly to a store query is not supported. Instead populate a DbSet with data, for example by calling 'Load' on the DbSet, and then bind to local data to avoid sending a query to the database each time the databound control iterates the data. For WPF bind to 'DbSet.Local.ToObservableCollection'. For WinForms bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms bind to 'DbSet.ToList' or use Model Binding. + Data binding directly to a store query is not supported. Instead populate a DbSet with data, for example by calling 'Load' on the DbSet, and then bind to local data to avoid sending a query to the database each time the databound control iterates the data. For WPF, bind to 'DbSet.Local.ToObservableCollection'. For WinForms, bind to 'DbSet.Local.ToBindingList'. For ASP.NET WebForms, bind to 'DbSet.ToList' or use Model Binding. 'AddDbContext' was called with configuration, but the context type '{contextType}' only declares a parameterless constructor. This means that the configuration passed to 'AddDbContext' will never be used. If configuration is passed to 'AddDbContext', then '{contextType}' should declare a constructor that accepts a DbContextOptions<{contextType}> and must pass it to the base constructor for DbContext. @@ -325,7 +325,7 @@ Unable to set a base type for entity type '{entityType}' because it has one or more keys defined. Only root types can have keys. - A '{derivedType}' cannot be configured as keyless because it is a derived type. The root type '{rootType}' must be configured as keyless. If you did not intend for '{rootType}' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder in 'OnModelCreating', or referenced from a navigation on a type that is included in the model. + '{derivedType}' cannot be configured as keyless because it is a derived type; the root type '{rootType}' must be configured as keyless instead. If you did not intend for '{rootType}' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder in 'OnModelCreating', or referenced from a navigation on a type that is included in the model. A key cannot be configured on '{derivedType}' because it is a derived type. The key must be configured on the root type '{rootType}'. If you did not intend for '{rootType}' to be included in the model, ensure that it is not referenced by a DbSet property on your context, referenced in a configuration call to ModelBuilder, or referenced from a navigation on a type that is included in the model. @@ -343,13 +343,13 @@ Unable to set property '{property}' as a discriminator for entity type '{entityType}' because it is not a property of '{entityType}'. - Cannot set discriminator value '{value}' for discriminator property '{discriminator}' because it is not assignable to '{discriminatorType}'. + Cannot set discriminator value '{value}' for discriminator property '{discriminator}' because it is not assignable to type '{discriminatorType}'. The annotation '{annotation}' cannot be added because an annotation with the same name already exists. - The discriminator value for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy needs to have a unique discriminator value. + The discriminator value for '{entityType1}' is '{discriminatorValue}' which is the same for '{entityType2}'. Every concrete entity type in the hierarchy must have a unique discriminator value. The entity type '{entityType}' cannot be added to the model because an entity type with the same name already exists. @@ -370,19 +370,19 @@ The type '{entityType}' cannot have base type '{baseType}' because the properties '{derivedPropertyType}.{derivedProperty}' and '{basePropertyType}.{baseProperty}' are conflicting. - The properties {propertyList} cannot be used, because they contain a duplicate - '{property}'. + The properties {propertyList} cannot be used, because they contain a duplicate: '{property}'. The service property '{property}' of type '{serviceType}' cannot be added to the entity type '{entityType}' because service property '{duplicateName}' of the same type already exists on entity type '{duplicateEntityType}'. - Cannot translate the '{comparisonOperator}' on a subquery expression of entity type '{entityType}' because it has a composite primary key. See https://go.microsoft.com/fwlink/?linkid=2141942 for information on how to rewrite your query. + Cannot translate '{comparisonOperator}' on a subquery expression of entity type '{entityType}' because it has a composite primary key. See https://go.microsoft.com/fwlink/?linkid=2141942 for information on how to rewrite your query. Cannot translate the '{comparisonOperator}' on an expression of entity type '{entityType}' because it is a keyless entity. Consider using entity properties instead. - The entity type '{entityType}' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943. + The entity type '{entityType}' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943. The entity type '{entityType}' cannot be removed because '{derivedEntityType}' is derived from it. Before the entity type can be removed, all derived entity types must be removed or configured to use a different base entity type. @@ -400,13 +400,13 @@ The entity type '{entityType}' was not found. Ensure that the entity type has been added to the model. - The specified entity type '{entityType}' is invalid. It should be either the dependent entity type '{dependentType}' or the principal entity type '{principalType}' or an entity type derived from one of them. + The specified entity type '{entityType}' is invalid. It must be the dependent entity type '{dependentType}', the principal entity type '{principalType}' or an entity type derived from one of them. - The specified entity type '{entityType}' is invalid. It should be either the dependent entity type '{dependentType}' or the principal entity type '{principalType}'. + The specified entity type '{entityType}' is invalid. It must be either the dependent entity type '{dependentType}' or the principal entity type '{principalType}'. - The specified entity types '{invalidDependentType}' and '{invalidPrincipalType}' are invalid. They should be '{dependentType}' and '{principalType}' or entity types in the same hierarchy. + The specified entity types '{invalidDependentType}' and '{invalidPrincipalType}' are invalid. They should be '{dependentType}' and '{principalType}', or entity types in the same hierarchy. Cannot use multiple context instances within a single query execution. Ensure the query uses a single context instance. @@ -415,7 +415,7 @@ An error occurred while reading a database value for property '{entityType}.{property}'. The expected type was '{expectedType}' but the actual value was of type '{actualType}'. - The configured execution strategy '{strategy}' does not support user initiated transactions. Use the execution strategy returned by '{getExecutionStrategyMethod}' to execute all the operations in the transaction as a retriable unit. + The configured execution strategy '{strategy}' does not support user-initiated transactions. Use the execution strategy returned by '{getExecutionStrategyMethod}' to execute all the operations in the transaction as a retriable unit. An exception was thrown while attempting to evaluate a LINQ query parameter expression. See the inner exception for more information. To show additional information call 'DbContextOptionsBuilder.EnableSensitiveDataLogging'. @@ -439,16 +439,16 @@ The [ForeignKey] attribute for the navigation '{navigation}' cannot be specified on the entity type '{principalType}' since it represents a one-to-many relationship. Move the [ForeignKey] attribute to a property on '{dependentType}'. - The [ForeignKey] attributes on property '{property}' and navigation '{navigation}' in entity type '{entityType}' do not point at each other. The value of [ForeignKey] attribute on property should be navigation name and the value of [ForeignKey] attribute on navigation should be the foreign key property name. + The [ForeignKey] attributes on property '{property}' and navigation '{navigation}' in entity type '{entityType}' do not point at each other. The value of the [ForeignKey] attribute on the property should be navigation name, and the value of the [ForeignKey] attribute on the navigation should be the foreign key property name. The number of properties specified for the foreign key {foreignKeyProperties} on entity type '{dependentType}' does not match the number of properties in the principal key {principalKey} on entity type '{principalType}'. - Cannot remove foreign key {foreigKey} from entity type '{entityType}' because it is referenced by a skip navigation '{navigation}' on entity type '{navigationEntityType}'. All referencing skip navigation must be removed before the referenced foreign key can be removed. + Cannot remove the foreign key {foreigKey} from entity type '{entityType}' because it is referenced by a skip navigation '{navigation}' on entity type '{navigationEntityType}'. All referencing skip navigation must be removed before the referenced foreign key can be removed. - The specified foreign key properties {foreignKeyProperties} are not declared on the entity type '{entityType}'. Ensure foreign key properties are declared on the target entity type. + The specified foreign key properties {foreignKeyProperties} are not declared on the entity type '{entityType}'. Ensure that foreign key properties are declared on the target entity type. The property '{property}' cannot be part of a foreign key on '{entityType}' because it has a store-generated value and is contained in the key {keyProperties} defined on a base entity type '{baseEntityType}'. @@ -484,10 +484,10 @@ The instance of entity type '{entityType}' cannot be tracked because another instance with the same key value for {keyProperties} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values. - The instance of entity type '{entityType}' cannot be tracked because another instance with the same key value for {keyProperties} is already being tracked. When replacing owned entities modify the properties without changing the instance or detach the previous owned entity entry first. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values. + The instance of entity type '{entityType}' cannot be tracked because another instance with the same key value for {keyProperties} is already being tracked. When replacing owned entities, modify the properties without changing the instance or detach the previous owned entity entry first. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values. - The instance of entity type '{entityType}' cannot be tracked because another instance with the key value '{keyValue}' is already being tracked. When replacing owned entities modify the properties without changing the instance or detach the previous owned entity entry first. + The instance of entity type '{entityType}' cannot be tracked because another instance with the key value '{keyValue}' is already being tracked. When replacing owned entities, modify the properties without changing the instance or detach the previous owned entity entry first. The instance of entity type '{entityType}' cannot be tracked because another instance with the key value '{keyValue}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. @@ -499,14 +499,14 @@ The implementation type for the registration of the '{service}' service could not be determined. Specific implementation types must be used for services that expect multiple registrations so as to avoid duplicates. - Include is not supported for entities with defining query. Entity type: '{entityType}' + 'Include' is not supported on entity type '{entityType}' because it has a defining query. Obsolete - Include has been used on non entity queryable. + Include has been used on a non-entity queryable. - The Include path '{navigationName}->{inverseNavigationName}' results in a cycle. Cycles are not allowed in no-tracking queries. Either use a tracking query or remove the cycle. + The Include path '{navigationName}->{inverseNavigationName}' results in a cycle. Cycles are not allowed in no-tracking queries; either use a tracking query or remove the cycle. The entity type '{entityType}' should derive from '{baseEntityType}' to reflect the hierarchy of the corresponding CLR types. @@ -515,22 +515,22 @@ The entity type '{ownedEntityType}' is configured as owned, but the entity type '{nonOwnedEntityType}' is not. All entity types sharing a CLR type must be configured as owned in 'OnModelCreating'. - The specified index properties {index} are not declared on the entity type '{entityType}'. Ensure index properties are declared on the target entity type. + The specified index properties {index} are not declared on the entity type '{entityType}'. Ensure that index properties are declared on the target entity type. The index {indexProperties} cannot be removed from the entity type '{entityType}' because it is defined on the entity type '{otherEntityType}'. - The property '{property}' cannot be ignored on entity type '{entityType}', because it's declared on the base entity type '{baseEntityType}'. To exclude this property from your model, use [NotMapped] attribute or 'EntityTypeBuilder.Ignore' on the base type in 'OnModelCreating'. + The property '{property}' cannot be ignored on entity type '{entityType}' because it's declared on the base entity type '{baseEntityType}'. To exclude this property from your model, use the [NotMapped] attribute or 'EntityTypeBuilder.Ignore' on the base type in 'OnModelCreating'. - The property '{entityType}.{navigation}' is of an interface type ('{propertyType}'). If it is a navigation manually configure the relationship for this property by casting it to a mapped entity type, otherwise ignore the property using the [NotMapped] attribute or 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. + The property '{entityType}.{navigation}' is of an interface type ('{propertyType}'). If it is a navigation, manually configure the relationship for this property by casting it to a mapped entity type. Otherwise, ignore the property using the [NotMapped] attribute or 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. - The entity type related to '{entityType}' cannot be determined because the specified foreign key {foreignKeyProperties} references entity type '{principalEntityType}' that it is in the same hierarchy as the entity type that it is declared on '{dependentEntityType}'. + The entity type related to '{entityType}' cannot be determined because the specified foreign key {foreignKeyProperties} references entity type '{principalEntityType}', which is in the same hierarchy as the entity type which is declared on '{dependentEntityType}'. - Unable to track an entity of type '{entityType}' because alternate key property '{keyProperty}' is null. If the alternate key is not used in a relationship, then consider using a unique index instead. Unique indexes may contain nulls, while alternate keys must not. + Unable to track an entity of type '{entityType}' because alternate key property '{keyProperty}' is null. If the alternate key is not used in a relationship, then consider using a unique index instead. Unique indexes may contain nulls, while alternate keys may not. The specified type '{type}' must be a non-interface reference type to be used as an entity type. @@ -539,13 +539,13 @@ The value provided for argument '{argumentName}' must be a valid value of enum type '{enumType}'. - The expression '{expression}' is invalid inside Include operation. The expression should represent a property access: 't => t.MyProperty'. To target navigations declared on derived types use cast, e.g. 't => ((Derived)t).MyProperty' or 'as' operator, e.g. 't => (t as Derived).MyProperty'. Collection navigation access can be filtered by composing Where, OrderBy(Descending), ThenBy(Descending), Skip or Take operations. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393. + The expression '{expression}' is invalid inside an Include operation, since it does not represent a property access: 't => t.MyProperty'. To target navigations declared on derived types, use casting ('t => ((Derived)t).MyProperty') or the 'as' operator ('t => (t as Derived).MyProperty'). Collection navigation access can be filtered by composing Where, OrderBy(Descending), ThenBy(Descending), Skip or Take operations. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393. - Unable to track an entity of type '{entityType}' because primary key property '{keyProperty}' is null. + Unable to track an entity of type '{entityType}' because its primary key property '{keyProperty}' is null. - Lambda expression used inside 'Include' is not valid. + The lambda expression used inside 'Include' is not valid. The expression '{expression}' is not a valid member access expression. The expression should represent a simple property or field access: 't => t.MyProperty'. @@ -554,7 +554,7 @@ Unhandled operation: MemberInitExpression binding is not a MemberAssignment - The expression '{expression}' is not a valid members access expression. The expression should represent a simple property or field access: 't => t.MyProperty'. When specifying multiple properties or fields use an anonymous type: 't => new {{ t.MyProperty, t.MyField }}'. + The expression '{expression}' is not a valid member access expression. The expression should represent a simple property or field access: 't => t.MyProperty'. When specifying multiple properties or fields, use an anonymous type: 't => new {{ t.MyProperty, t.MyField }}'. The [InverseProperty] attribute on property '{1_entityType}.{0_property}' is not valid. The property '{referencedProperty}' is not a valid navigation on the related type '{referencedEntityType}'. Ensure that the property exists and is a valid reference or collection navigation. @@ -563,7 +563,7 @@ The specified poolSize must be greater than 0. - The properties expression '{expression}' is not valid. The expression should represent a simple property access: 't => t.MyProperty'. When specifying multiple properties use an anonymous type: 't => new {{ t.MyProperty1, t.MyProperty2 }}'. + The properties expression '{expression}' is invalid. The expression should represent a simple property access: 't => t.MyProperty'. When specifying multiple properties, use an anonymous type: 't => new {{ t.MyProperty1, t.MyProperty2 }}'. Obsolete @@ -574,7 +574,7 @@ The property list specified using [ForeignKey] attribute on navigation '{1_entityType}.{0_navigation}' is incorrect. The attribute value should be comma-separated list of property names. - Invalid relationship has been specified using [InverseProperty] attribute and [ForeignKey] attribute. The navigation '{1_entityType}.{0_navigation}' and the navigation '{3_referencedEntityType}.{2_referencedNavigation}' are related by [InverseProperty] attribute but the [ForeignKey] attribute specified for both navigations have different values. + An invalid relationship has been specified using the [InverseProperty] and [ForeignKey] attributes. The navigations '{1_entityType}.{0_navigation}' and '{3_referencedEntityType}.{2_referencedNavigation}' are related by the [InverseProperty] attribute, but the [ForeignKey] attribute specified for both navigations have different values. A call was made to '{replaceService}', but Entity Framework is not building its own internal service provider. Either allow Entity Framework to build the service provider by removing the call to '{useInternalServiceProvider}', or build replacement services into the service provider before passing it to '{useInternalServiceProvider}'. @@ -583,16 +583,16 @@ The invoked method cannot be used for the entity type '{entityType}' because it does not have a primary key. - Cannot create a DbSet for '{typeName}' because it is configured as an shared type entity type and should be accessed through entity type name based Set method. + Cannot create a DbSet for '{typeName}' because it is configured as an shared type entity type. Access the entity type via the `Set` method overload that accepts an entity type name. Cannot create a DbSet for '{typeName}' because this type is not included in the model for the context. - Cannot create a DbSet for '{typeName}' because it is configured as an owned entity type and should be accessed through the defining entities. + Cannot create a DbSet for '{typeName}' because it is configured as an owned entity type and must be accessed through its owning entity type. - Cannot create a DbSet for '{typeName}' because it is mapped to multiple entity types and should be accessed through the defining entities. + Cannot create a DbSet for '{typeName}' because it is mapped to multiple entity types and should be accessed through the owning entities. Invalid {name}: {value} @@ -601,7 +601,7 @@ The value for property '{1_entityType}.{0_property}' cannot be set to a value of type '{valueType}' because its type is '{propertyType}'. - Invalid type conversion specified in 'Include' call. + Invalid type conversion specified in an 'Include' operation. A call was made to '{useService}', but Entity Framework is not building its own internal service provider. Either allow Entity Framework to build the service provider by removing the call to '{useInternalServiceProvider}', or build the '{service}' services to use into the service provider before passing it to '{useInternalServiceProvider}'. @@ -622,7 +622,7 @@ The provider for the source IQueryable doesn't implement IAsyncQueryProvider. Only providers that implement IAsyncQueryProvider can be used for Entity Framework asynchronous operations. - The derived type '{derivedType}' cannot have [Key] attribute on property '{property}' since primary key can only be declared on the root type. + The derived type '{derivedType}' cannot have the [Key] attribute on property '{property}' since primary keys may only be declared on the root type. Cannot remove key {keyProperties} from entity type '{entityType}' because it is referenced by a foreign key {foreignKeyProperties} in entity type '{dependentType}'. All foreign keys must be removed or redefined before the referenced key can be removed. @@ -640,13 +640,13 @@ The specified key properties {keyProperties} are not declared on the entity type '{entityType}'. Ensure key properties are declared on the target entity type. - The property '{1_entityType}.{0_property}' cannot be marked as nullable/optional because it has been included in a key {keyProperties}. + The property '{1_entityType}.{0_property}' cannot be marked as nullable/optional because it has been included in the key {keyProperties}. The property '{1_entityType}.{0_property}' must be marked as read-only after it has been saved because it is part of a key. Key properties are always read-only once an entity has been saved for the first time. - The property '{1_entityType}.{0_property}' is part of a key and so cannot be modified or marked as modified. To change the principal of an existing entity with an identifying foreign key first delete the dependent and invoke 'SaveChanges' then associate the dependent with the new principal. + The property '{1_entityType}.{0_property}' is part of a key and so cannot be modified or marked as modified. To change the principal of an existing entity with an identifying foreign key, first delete the dependent and invoke 'SaveChanges', and then associate the dependent with the new principal. The key {keyProperties} cannot be removed from the entity type '{entityType}' because it is defined on the entity type '{otherEntityType}'. @@ -655,31 +655,31 @@ The type mapping for '{type}' has not implemented code literal generation. - The foreign key {foreignKeyProperties} on entity type '{entityType}' should not be configured as required since the dependent side cannot be determined. To identify the dependent side of the relationship, configure the foreign key property or the principal key before configuring the foreign key as required in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. + The foreign key {foreignKeyProperties} on entity type '{entityType}' cannot be configured as required since the dependent side cannot be determined. To identify the dependent side of the relationship, configure the foreign key property or the principal key before configuring the foreign key as required in 'OnModelCreating'. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details. Warning CoreEventId.AmbiguousEndRequiredWarning string string - Cascade state change of '{entityType}' entity to '{state}' due to deletion of parent '{parentType}' entity. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + A cascade state change of an entity of type '{entityType}' to '{state}' occurred due to deletion of its parent entity of type '{parentType}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. Debug CoreEventId.CascadeDelete string EntityState string - '{entityType}' entity changed to '{state}' state due to severed required relationship to parent '{parentType}' entity. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + An entity of type '{entityType}' changed to '{state}' state due to severed required relationship to its parent entity of type '{parentType}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. Debug CoreEventId.CascadeDeleteOrphan string EntityState string - '{entityType}' entity with key '{keyValues}' changed to '{state}' state due to severed required relationship to parent '{parentType}' entity. + An entity of type '{entityType}' with key '{keyValues}' changed to '{state}' state due to severed required relationship to its parent entity of type '{parentType}'. Debug CoreEventId.CascadeDeleteOrphan string string EntityState string - Cascade state change of '{entityType}' entity with key '{keyValues}' to '{state}' due to deletion of parent '{parentType}' entity with key '{parentKeyValues}'. + A cascade state change of an entity of type '{entityType}' with key '{keyValues}' to '{state}' occurred due to the deletion of its parent entity of type '{parentType}' with key '{parentKeyValues}'. Debug CoreEventId.CascadeDelete string string EntityState string string - Detected {addedCount} entities added and {removedCount} entities removed from navigation '{entityType}.{property}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + {addedCount} entities were added and {removedCount} entities were removed from navigation '{entityType}.{property}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. Debug CoreEventId.CollectionChangeDetected int int string string - Detected {addedCount} entities added and {removedCount} entities removed from navigation '{entityType}.{property}' on entity with key '{keyValues}'. + {addedCount} entities were added and {removedCount} entities were removed from navigation '{entityType}.{property}' on entity with key '{keyValues}'. Debug CoreEventId.CollectionChangeDetected int int string string string @@ -687,15 +687,15 @@ Warning CoreEventId.CollectionWithoutComparer string string - The relationship was separated into two relationships because [ForeignKey] attribute specified on the navigation '{navigationEntityType}.{navigation}' doesn't match the [ForeignKey] attribute specified on the property '{propertyEntityType}.{property}'. + The relationship was separated into two relationships because the [ForeignKey] attribute specified on the navigation '{navigationEntityType}.{navigation}' doesn't match the [ForeignKey] attribute specified on the property '{propertyEntityType}.{property}'. Warning CoreEventId.ConflictingForeignKeyAttributesOnNavigationAndPropertyWarning string string string string - Conflicting attributes have been applied: the 'Key' attribute on property '{property}' and the 'Keyless' attribute on its entity '{entity}'. Note that the entity will have no key unless you configure one in 'OnModelCreating'. + The entity type '{entity}' has the [Keyless] attribute, but the [Key] attribute was specified on property '{property}'; the two are incompatible, consider removing one. Note that the entity will have no key unless you configure one in 'OnModelCreating'. Warning CoreEventId.ConflictingKeylessAndKeyAttributesWarning string string - There are multiple relationships between '{dependentEntityType}' and '{principalEntityType}' without configured foreign key properties causing Entity Framework to create shadow properties on '{dependentType}' with names dependent on the discovery order. + There are multiple relationships between '{dependentEntityType}' and '{principalEntityType}' without configured foreign key properties. This will cause Entity Framework to create shadow properties on '{dependentType}' with names dependent on the discovery order. Warning CoreEventId.ConflictingShadowForeignKeysWarning string string string @@ -707,7 +707,7 @@ Information CoreEventId.ContextInitialized string string string string - An attempt was made to lazy-load navigation '{navigation}' on detached entity of type '{entityType}'. Lazy-loading is not supported for detached entities or entities that are loaded with 'AsNoTracking()'. + An attempt was made to lazy-load navigation '{navigation}' on a detached entity of type '{entityType}'. Lazy-loading is not supported for detached entities or entities that are loaded with 'AsNoTracking'. Warning CoreEventId.DetachedLazyLoadingWarning string string @@ -719,7 +719,7 @@ Debug CoreEventId.DetectChangesStarting string - The same entity is being tracked as different weak entity types '{dependent1}' and '{dependent2}'. If a property value changes it will result in two store changes, which might not be the desired outcome. + The same entity is being tracked as different weak entity types '{dependent1}' and '{dependent2}'. If a property value changes, it will result in two store changes, which might not be the desired outcome. Warning CoreEventId.DuplicateDependentEntityTypeInstanceWarning string string @@ -731,27 +731,27 @@ Error CoreEventId.SaveChangesFailed Type string Exception - A transient exception has been encountered during execution and the operation will be retried after {delay}ms.{newline}{error} + A transient exception occurred during execution. The operation will be retried after {delay}ms.{newline}{error} Information CoreEventId.ExecutionStrategyRetrying int string Exception - Query uses First/FirstOrDefault operation without OrderBy and filter, which may lead to unpredictable results. + The query uses the First/FirstOrDefault operator without OrderBy and filter operators. This may lead to unpredictable results. Warning CoreEventId.FirstWithoutOrderByAndFilterWarning - Navigations '{dependentEntityType}.{dependentNavigation}' and '{principalEntityType}.{principalNavigation}' were separated into two relationships as [ForeignKey] attribute was specified on navigations on both sides. + Navigations '{dependentEntityType}.{dependentNavigation}' and '{principalEntityType}.{principalNavigation}' were separated into two relationships as the [ForeignKey] attribute was specified on navigations on both sides. Warning CoreEventId.ForeignKeyAttributesOnBothNavigationsWarning string string string string - Navigations '{dependentEntityType}.{dependentNavigation}' and '{principalEntityType}.{principalNavigation}' were separated into two relationships as [ForeignKey] attribute was specified on properties '{dependentProperty}' and '{principalProperty}' on both sides. + Navigations '{dependentEntityType}.{dependentNavigation}' and '{principalEntityType}.{principalNavigation}' were separated into two relationships as the [ForeignKey] attribute was specified on properties '{dependentProperty}' and '{principalProperty}' on both sides. Warning CoreEventId.ForeignKeyAttributesOnBothPropertiesWarning string string string string string string - Foreign key property '{entityType}.{property}' detected as changed. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see property values. + The foreign key property '{entityType}.{property}' was detected as changed. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see property values. Debug CoreEventId.ForeignKeyChangeDetected string string - Foreign key property '{entityType}.{property}' detected as changed from '{oldValue}' to '{newValue}' for entity with key '{keyValues}'. + The foreign key property '{entityType}.{property}' was detected as changed from '{oldValue}' to '{newValue}' for entity with key '{keyValues}'. Debug CoreEventId.ForeignKeyChangeDetected string string object object string @@ -759,7 +759,7 @@ Debug CoreEventId.IncompatibleMatchingForeignKeyProperties string string string string - Invalid include path '{navigationChain}', couldn't find navigation for '{navigationName}'. + Invalid Include path '{navigationChain}': couldn't find navigation for '{navigationName}'. Error CoreEventId.InvalidIncludePathError object object @@ -767,11 +767,11 @@ Warning CoreEventId.LazyLoadOnDisposedContextWarning string string - More than twenty 'IServiceProvider' instances have been created for internal use by Entity Framework. This is commonly caused by injection of a new singleton service instance into every DbContext instance. For example, calling UseLoggerFactory passing in a new instance each time--see https://go.microsoft.com/fwlink/?linkid=869049 for more details. Consider reviewing calls on 'DbContextOptionsBuilder' that may require new service providers to be built. + More than twenty 'IServiceProvider' instances have been created for internal use by Entity Framework. This is commonly caused by injection of a new singleton service instance into every DbContext instance. For example, calling 'UseLoggerFactory' passing in a new instance each time--see https://go.microsoft.com/fwlink/?linkid=869049 for more details. This may lead to performance issues, consider reviewing calls on 'DbContextOptionsBuilder' that may require new service providers to be built. Warning CoreEventId.ManyServiceProvidersCreatedWarning - There are multiple navigations ({navigations}) configured with [InverseProperty] attribute that point to the same inverse navigation '{inverseNavigation}'. + There are multiple navigations ({navigations}) configured with [InverseProperty] attribute which point to the same inverse navigation '{inverseNavigation}'. Warning CoreEventId.MultipleInversePropertiesSameTargetWarning string string @@ -779,7 +779,7 @@ Debug CoreEventId.MultipleNavigationProperties string string string string - Primary key hasn't been configured by convention as both properties '{firstProperty}' and '{secondProperty}' could be used as the primary key for the entity type '{entityType}'. This message can be disregarded if explicit configuration has been specified in 'OnModelCreating'. + A primary key hasn't been configured by convention as both properties '{firstProperty}' and '{secondProperty}' could be used as the primary key for the entity type '{entityType}'. This message can be disregarded if explicit configuration has been specified in 'OnModelCreating'. Debug CoreEventId.MultiplePrimaryKeyCandidates string string string @@ -799,11 +799,11 @@ Obsolete Debug CoreEventId.NonNullableInverted string string - '{principalEntityType}.{principalNavigation}' may still be null at runtime despite being declared as non-nullable since only the navigation to principal '{dependentEntityType}.{dependentNavigation}' can be configured as required. + '{principalEntityType}.{principalNavigation}' may still be null at runtime despite being declared as non-nullable, since only the navigation to principal '{dependentEntityType}.{dependentNavigation}' can be configured as required. Obsolete Debug CoreEventId.NonNullableReferenceOnBothNavigations string string string string - '{principalEntityType}.{principalNavigation}' may still be null at runtime despite being declared as non-nullable since only the navigation to principal can be configured as required. + '{principalEntityType}.{principalNavigation}' may still be null at runtime despite being declared as non-nullable, since only the navigation to principal can be configured as required. Obsolete Debug CoreEventId.NonNullableReferenceOnDependent string string @@ -815,11 +815,11 @@ Debug CoreEventId.OptimisticConcurrencyException Exception - Entity '{principalEntityType}' has global query filter defined and is a required end of a relationship with the entity '{declaringEntityType}'. This may lead to unexpected results when the required entity is filtered out. Either use optional navigation or define matching query filters for both entities in the navigation. See https://go.microsoft.com/fwlink/?linkid=2131316 for more information. + Entity '{principalEntityType}' has a global query filter defined and is the required end of a relationship with the entity '{declaringEntityType}'. This may lead to unexpected results when the required entity is filtered out. Either configure the navigation as optional, or define matching query filters for both entities in the navigation. See https://go.microsoft.com/fwlink/?linkid=2131316 for more information. Warning CoreEventId.PossibleIncorrectRequiredNavigationWithQueryFilterInteractionWarning string string - Collection navigations are only considered null if their parent entity is null. Use '.Any()' to check whether collection navigation '{navigationPath}' is empty. + Collection navigations are only considered null if their parent entity is null. Use 'Any' to check whether collection navigation '{navigationPath}' is empty. Warning CoreEventId.PossibleUnintendedCollectionNavigationNullComparisonWarning string @@ -827,11 +827,11 @@ Warning CoreEventId.PossibleUnintendedReferenceComparisonWarning object object - Unchanged '{entityType}.{property}' detected as changed and will be marked as modified. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see property values. + The unchanged property '{entityType}.{property}' was detected as changed and will be marked as modified. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see property values. Debug CoreEventId.PropertyChangeDetected string string - Unchanged '{entityType}.{property}' detected as changed from '{oldValue}' to '{newValue}' and will be marked as modified for entity with key '{keyValues}'. + The unchanged property '{entityType}.{property}' was detected as changed from '{oldValue}' to '{newValue}' and will be marked as modified for entity with key '{keyValues}'. Debug CoreEventId.PropertyChangeDetected string string object object string @@ -843,11 +843,11 @@ Debug CoreEventId.QueryExecutionPlanned string - 'AddEntityFramework*' was called on the service provider, but 'UseInternalServiceProvider' wasn't called in the DbContext options configuration. Remove the 'AddEntityFramework*' call as in most cases it's not needed and might cause conflicts with other products and services registered in the same service provider. + 'AddEntityFramework*' was called on the service provider, but 'UseInternalServiceProvider' wasn't called in the DbContext options configuration. Consider removing the 'AddEntityFramework*' call, as in most cases it's not needed and may cause conflicts with other products and services registered in the same service provider. Warning CoreEventId.RedundantAddServicesCallWarning - The foreign key {redundantForeignKey} on entity type '{entityType} targets itself, it should be removed since it serves no purpose. + The foreign key {redundantForeignKey} on entity type '{entityType} targets itself. Consider removing it since it serves no purpose. Warning CoreEventId.RedundantForeignKeyWarning string string @@ -855,11 +855,11 @@ Debug CoreEventId.RedundantIndexRemoved string string string - The navigation '{entityType}.{property}' detected as changed. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + The navigation '{entityType}.{property}' was detected as changed. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. Debug CoreEventId.ReferenceChangeDetected string string - The navigation '{entityType}.{property}' for entity with key '{keyValues}' detected as changed. + The navigation '{entityType}.{property}' for entity with key '{keyValues}' was detected as changed. Debug CoreEventId.ReferenceChangeDetected string string string @@ -867,23 +867,23 @@ Obsolete Debug CoreEventId.RequiredAttributeInverted string string - The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because there is also a [Required] attribute on '{dependentEntityType}.{dependentNavigation}'. [Required] attribute should only be specified on the dependent side of the relationship. + The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because there is also a [Required] attribute on '{dependentEntityType}.{dependentNavigation}'. The [Required] attribute should only be specified on the dependent side of the relationship. Obsolete Debug CoreEventId.RequiredAttributeOnBothNavigations string string string string - The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because it is a collection. [Required] attribute should only be specified on reference navigations pointing to the principal side of the relationship. + The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because it is a collection. The [Required] attribute should only be specified on reference navigations pointing to the principal side of the relationship. Debug CoreEventId.RequiredAttributeOnCollection string string - The [Required] attribute on '{principalEntityType}.{principalNavigation}' is invalid. [Required] attribute should only be specified on the navigation pointing to the principal side of the relationship. To change the dependent side configure the foreign key properties using [ForeignKey] attribute or in 'OnModelCreating'. + The [Required] attribute on '{principalEntityType}.{principalNavigation}' is invalid. The [Required] attribute can only be specified on the navigation pointing to the principal side of the relationship. To change the dependent side, configure the foreign key properties using the [ForeignKey] attribute or in 'OnModelCreating'. Obsolete Error CoreEventId.RequiredAttributeOnDependent string string - The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because it is a skip navigation. Instead configure the underlying foreign keys in 'OnModelCreating'. + The [Required] attribute on '{principalEntityType}.{principalNavigation}' was ignored because it is a skip navigation. Consider configuring the underlying foreign keys in 'OnModelCreating' instead. Debug CoreEventId.RequiredAttributeOnSkipNavigation string string - Query uses a row limiting operation (Skip/Take) without OrderBy, which may lead to unpredictable results. + The query uses a row limiting operator (Skip/Take) without an OrderBy operator. This may lead to unpredictable results. Warning CoreEventId.RowLimitingOperationWithoutOrderByWarning @@ -895,7 +895,7 @@ Debug CoreEventId.SaveChangesStarting string - Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data, this mode should only be enabled during development. + Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development. Warning CoreEventId.SensitiveDataLoggingEnabledWarning @@ -911,11 +911,11 @@ Debug CoreEventId.ShadowPropertyCreated string string - Detected {addedCount} entities added and {removedCount} entities removed from skip navigation '{entityType}.{property}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + {addedCount} entities were added and {removedCount} entities were removed from skip navigation '{entityType}.{property}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. Debug CoreEventId.SkipCollectionChangeDetected int int string string - Detected {addedCount} entities added and {removedCount} entities removed from skip navigation '{entityType}.{property}' on entity with key '{keyValues}'. + {addedCount} entities were added and {removedCount} entities were removed from skip navigation '{entityType}.{property}' on entity with key '{keyValues}'. Debug CoreEventId.SkipCollectionChangeDetected int int string string string @@ -927,11 +927,11 @@ Debug CoreEventId.StartedTracking string string string - An '{entityType}' entity tracked by '{contextType}' changed from '{oldState}' to '{newState}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. + An entity of type '{entityType}' tracked by '{contextType}' changed state from '{oldState}' to '{newState}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see key values. Debug CoreEventId.StateChanged string string EntityState EntityState - The '{entityType}' entity with key '{keyValues}' tracked by '{contextType}' changed from '{oldState}' to '{newState}'. + The '{entityType}' entity with key '{keyValues}' tracked by '{contextType}' changed state from '{oldState}' to '{newState}'. Debug CoreEventId.StateChanged string string string EntityState EntityState @@ -954,7 +954,7 @@ The specified field '{field}' could not be found for property '{2_entityType}.{1_property}'. - Unable to set up a many-to-many relationship between the entity types '{principalEntityType}' and '{declaringEntityType}' because one of the navigations was not specified. Please provide a navigation in the 'HasMany()' call in 'OnModelCreating'. + Unable to set up a many-to-many relationship between the entity types '{principalEntityType}' and '{declaringEntityType}' because one of the navigations was not specified. Please provide a navigation in the 'HasMany' call in 'OnModelCreating'. The model must be finalized before '{method}' can be used. Ensure that either 'OnModelCreating' has completed or, if using a stand-alone 'ModelBuilder', that 'FinalizeModel' has been called. @@ -963,25 +963,25 @@ Cannot start tracking InternalEntityEntry for entity type '{entityType}' because another InternalEntityEntry is already tracking the same entity. - Different filters: '{filter1}' and '{filter2}' have been applied on the same included navigation. Only one unique filter per navigation is allowed. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393. + The filters '{filter1}' and '{filter2}' have both been configured on the same included navigation. Only one unique filter per navigation is allowed. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393. - There are multiple navigations in entity type '{entityType}' which are pointing to same set of properties - '{propertyList}' using [ForeignKey] attribute. + There are multiple navigations in entity type '{entityType}' which are pointing to same set of properties using a [ForeignKey] attribute: '{propertyList}' The entity type '{entityType}' is the target of multiple ownership relationships. - Services for database providers {storeNames} have been registered in the service provider. Only a single database provider can be registered in a service provider. If possible, ensure that Entity Framework is managing its service provider by removing the call to UseInternalServiceProvider. Otherwise, consider conditionally registering the database provider, or maintaining one service provider per database provider. + Services for database providers {storeNames} have been registered in the service provider. Only a single database provider can be registered in a service provider. If possible, ensure that Entity Framework is managing its service provider by removing the call to 'UseInternalServiceProvider'. Otherwise, consider conditionally registering the database provider, or maintaining one service provider per database provider. The property '{keyProperty}' cannot be configured as 'ValueGeneratedOnUpdate' or 'ValueGeneratedOnAddOrUpdate' because the key value cannot be changed after the entity has been added to the store. - The index named '{indexName}' on the entity type '{entityType}' with properties {indexPropertyList} is invalid. The property '{propertyName}' has been marked NotMapped or Ignore(). An index cannot use such properties. + The index named '{indexName}' on the entity type '{entityType}' with properties {indexPropertyList} is invalid. The property '{propertyName}' has been marked as unmapped via the [NotMapped] attribute or the 'EntityTypeBuilder.Ignore' fluent API. An index cannot use unmapped properties. - An index named '{indexName}' on the entity type '{entityType}' specifies properties {indexPropertyList}. But no property with name '{propertyName}' exists on that entity type or any of its base types. + An index named '{indexName}' on entity type '{entityType}' specifies properties {indexPropertyList}, but no property with name '{propertyName}' exists on that entity type or any of its base types. The index with name {indexName} cannot be removed from the entity type '{entityType}' because no such index exists on that entity type. @@ -1017,13 +1017,13 @@ The navigation '{navigation}' cannot be added because it targets the keyless entity type '{entityType}'. Navigations can only target entity types with keys. - The navigation '{navigation}' cannot be added to the entity type '{entityType}' because the target entity type '{targetType}' is defined in shadow state and navigations properties cannot point to shadow state entities. + The navigation '{navigation}' cannot be added to the entity type '{entityType}' because the target entity type '{targetType}' is defined in shadow state, and navigations properties cannot point to shadow state entities. - No field was found backing property '{1_entityType}.{0_property}'. Either name the backing field so that it is picked up by convention, configure the backing field to use, or use a different '{propertyAccessMode}'. + No backing field was found for property '{1_entityType}.{0_property}'. Name the backing field so that it is discovered by convention, configure the backing field to use, or use a different '{propertyAccessMode}'. - No field was found backing property '{1_entityType}.{0_property}'. Lazy-loaded navigation properties must have backing fields. Either name the backing field so that it is picked up by convention or configure the backing field to use. + No backing field was found for property '{1_entityType}.{0_property}'. Lazy-loaded navigation properties must have backing fields. Either name the backing field so that it is discovered by convention or configure the backing field to use. The navigation '{navigation}' cannot be added to the entity type '{entityType}' because there is no corresponding CLR property on the underlying type and navigations properties cannot be added in shadow state. @@ -1035,7 +1035,7 @@ The navigation '{navigation}' used to define the entity type '{entityType}' is not present on '{definingEntityType}'. - Cannot set discriminator value for entity type '{entityType}' because the root entity type '{rootEntityType}' doesn't have a discriminator property set. + Cannot set the discriminator value for entity type '{entityType}' because the root entity type '{rootEntityType}' doesn't have a discriminator property set. The entity type '{entityType}' is part of a hierarchy, but does not have a discriminator property configured. @@ -1065,19 +1065,19 @@ The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{baseEntityType}' is a shadow state entity type while '{entityType}' is not. - Property '{entityType}.{property}' cannot be used as a key because it has type '{providerType}' which does not implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Use 'HasConversion()' in 'OnModelCreating' to wrap '{providerType}' with a type that can be compared. + Property '{entityType}.{property}' cannot be used as a key because it has type '{providerType}' which does not implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Use 'HasConversion' in 'OnModelCreating' to wrap '{providerType}' with a type that can be compared. - Property '{entityType}.{property}' cannot be used as a key because it has type '{modelType}' and provider type '{providerType}' neither of which implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Make '{modelType}' implement one of these interfaces to use it as a key. + Property '{entityType}.{property}' cannot be used as a key because it has type '{modelType}' and provider type '{providerType}', neither of which implement 'IComparable<T>', 'IComparable' or 'IStructuralComparable'. Make '{modelType}' implement one of these interfaces to use it as a key. - The navigation '{1_entityType}.{0_navigation}' must be configured in 'OnModelCreating' with an explicit name for the target shared type entity type or excluded by calling 'EntityTypeBuilder.Ignore'. + The navigation '{1_entityType}.{0_navigation}' must be configured in 'OnModelCreating' with an explicit name for the target shared type entity type, or excluded by calling 'EntityTypeBuilder.Ignore'. The ownership by '{ownershipNavigation}' should use defining navigation '{definingNavigation}' for the owned type '{entityType}' - The DbContextOptions passed to the {contextType} constructor must be a DbContextOptions<{contextType}>. When registering multiple DbContext types make sure that the constructor for each context type has a DbContextOptions<TContext> parameter rather than a non-generic DbContextOptions parameter. + The DbContextOptions passed to the {contextType} constructor must be a DbContextOptions<{contextType}>. When registering multiple DbContext types, make sure that the constructor for each context type has a DbContextOptions<TContext> parameter rather than a non-generic DbContextOptions parameter. Cannot add property '{1_entityType}.{0_property}' since there is no indexer on '{1_entityType}' taking a single argument of type '{type}'. @@ -1095,19 +1095,19 @@ '{principalEntityType}.{principalNavigation}' cannot be configured as required since it contains a collection. - A parameterless constructor was not found on entity type '{entityType}'. In order to create an instance of '{entityType}' Entity Framework requires that a parameterless constructor be declared. + A parameterless constructor was not found on entity type '{entityType}'. In order to create an instance of '{entityType}', Entity Framework requires that a parameterless constructor be declared. No property was associated with field '{field}' of entity type '{entity}'. Either configure a property or use a different '{propertyAccessMode}'. - The property '{property}' cannot be added to the type '{entityType}' because there was no property type specified and there is no corresponding CLR property or field. To add a shadow state property the property type must be specified. + The property '{property}' cannot be added to the type '{entityType}' because no property type was specified and there is no corresponding CLR property or field. To add a shadow state property, the property type must be specified. - No database provider has been configured for this DbContext. A provider can be configured by overriding the DbContext.OnConfiguring method or by using AddDbContext on the application service provider. If AddDbContext is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext. + No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext. - Unable to resolve service for type '{service}'. This is often because no database provider has been configured for this DbContext. A provider can be configured by overriding the DbContext.OnConfiguring method or by using AddDbContext on the application service provider. If AddDbContext is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext. + Unable to resolve service for type '{service}'. This is often because no database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext. The property '{1_entityType}.{0_property}' does not have a setter. Either make the property writable or use a different '{propertyAccessMode}'. @@ -1122,7 +1122,7 @@ The given 'IQueryable' does not support generation of query strings. - The '{1_entityType}.{0_property}' does not have a value set and no value generator is available for properties of type '{propertyType}'. Either set a value for the property before adding the entity or configure a value generator for properties of type '{propertyType}' in 'OnModelCreating'. + The property '{1_entityType}.{0_property}' does not have a value set and no value generator is available for properties of type '{propertyType}'. Either set a value for the property before adding the entity or configure a value generator for properties of type '{propertyType}' in 'OnModelCreating'. A key on entity type '{entityType}' cannot contain the property '{property}' because it is nullable/optional. All properties on which a key is declared must be marked as non-nullable/required. @@ -1131,25 +1131,25 @@ Options extension of type '{optionsExtension}' not found. - The original value for property '{1_entityType}.{0_property}' cannot be accessed because it is not being tracked. Original values are not recorded for most properties of entities when the 'ChangingAndChangedNotifications' strategy is used. To access all original values use a different change tracking strategy such as 'ChangingAndChangedNotificationsWithOriginalValues'. + The original value for property '{1_entityType}.{0_property}' cannot be accessed because it is not being tracked. Original values are not recorded for most properties of entities when the 'ChangingAndChangedNotifications' strategy is used. To access all original values, use a different change tracking strategy such as 'ChangingAndChangedNotificationsWithOriginalValues'. The owned entity type '{entityType}' cannot have a base type. - A tracking query projects owned entity without corresponding owner in result. Owned entities cannot be tracked without their owner. Either include the owner entity in the result or make query non-tracking using 'AsNoTracking()'. + A tracking query is attempting to project an owned entity without a corresponding owner in its result, but owned entities cannot be tracked without their owner. Either include the owner entity in the result or make the query non-tracking using 'AsNoTracking'. - The owned entity type '{ownedType}' requires to be referenced from another entity type via a navigation. Add a navigation to an entity type that points at '{ownedType}'. + The owned entity type '{ownedType}' must be referenced from another entity type via a navigation. Add a navigation to an entity type that points at '{ownedType}'. The DbContext of type '{contextType}' cannot be pooled because it does not have a single public constructor accepting a single parameter of type DbContextOptions. - OnConfiguring cannot be used to modify DbContextOptions when DbContext pooling is enabled. + 'OnConfiguring' cannot be used to modify DbContextOptions when DbContext pooling is enabled. - You are configuring a relationship between '{dependentEntityType}' and '{principalEntityType}' but have specified a foreign key targeting '{entityType}'. The foreign key must be targeting a type that is part of the relationship. + You are configuring a relationship between '{dependentEntityType}' and '{principalEntityType}', but have specified a foreign key targeting '{entityType}'. The foreign key must target a type that is part of the relationship. The entity type '{entityType}' cannot be on the principal end of the relationship between '{firstNavigationSpecification}' and '{secondNavigationSpecification}'. The principal entity type must have a key. @@ -1161,16 +1161,16 @@ '{property}' cannot be used as a property on entity type '{entityType}' because it is configured as a navigation. - The indexer property '{property}' cannot be added to type '{entityType}' because the CLR class contains a member with the same name. + The indexer property '{property}' cannot be added to type '{entityType}' because the CLR type contains a member with the same name. - The property '{1_entityType}.{0_property}' is marked as null, but this cannot be saved because the property is marked as required. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. + The property '{1_entityType}.{0_property}' contains null, but the property is marked as required. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. - The property '{property}' is marked as null on entity '{entityType}' with the key value '{keyValue}', but this cannot be saved because the property is marked as required. + The property '{property}' contains null on entity '{entityType}' with the key value '{keyValue}', but the property is marked as required. - The property '{property}' belongs to entity type '{entityType}' but is being used with an instance of entity type '{expectedType}'. + The property '{property}' belongs to entity type '{entityType}', but is being used with an instance of entity type '{expectedType}'. The property '{property}' cannot be removed from entity type '{entityType}' because it is being used in the foreign key {foreignKeyProperties} on '{foreignKeyType}'. All containing foreign keys must be removed or redefined before the property can be removed. @@ -1185,22 +1185,22 @@ The property '{1_entityType}.{0_property}' is being accessed using the '{propertyMethod}' method, but is defined in the model as a navigation. Use either the '{referenceMethod}' or '{collectionMethod}' method to access navigation properties. - The EF.Property<T> method may only be used within LINQ queries. + The EF.Property<T> method may only be used within Entity Framework LINQ queries. - The property '{entityType}.{property}' could not be mapped, because it is of type '{propertyType}' which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. + The property '{entityType}.{property}' could not be mapped because it is of type '{propertyType}', which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. The property '{1_entityType}.{0_property}' could not be found. Ensure that the property exists and has been included in the model. - The property '{entityType}.{property}' is of type '{propertyType}' which is not supported by current database provider. Either change the property CLR type or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. + The property '{entityType}.{property}' is of type '{propertyType}' which is not supported by the current database provider. Either change the property CLR type, or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'. - The property '{1_entityType}.{0_property}' is defined to be read-only after it has been saved, but its value has been modified or marked as modified. + The property '{1_entityType}.{0_property}' is defined as read-only after it has been saved, but its value has been modified or marked as modified. - The property '{1_entityType}.{0_property}' is defined to be read-only before it is saved, but its value has been set to something other than a temporary or default value. + The property '{1_entityType}.{0_property}' is defined as read-only before it has been saved, but its value has been set to something other than a temporary or default value. The property '{property}' cannot be added to type '{entityType}' because the type of the corresponding CLR property or field '{clrType}' does not match the specified type '{propertyType}'. @@ -1215,28 +1215,28 @@ The property '{property}' cannot be removed from the entity type '{entityType}' because it is declared on the entity type '{otherEntityType}'. - InitializeStateManager method has been called multiple times on current query context. This method is intended to be called only once before query enumeration starts. + The 'InitializeStateManager' method has been called multiple times on the current query context. This method is intended to be called only once before query enumeration starts. - Materialization condition passed for entity shaper of entity type '{entityType}' is not of correct shape. Materialization condition must be LambdaExpression of 'Func<ValueBuffer, IEntityType>' + The materialization condition passed for entity shaper of entity type '{entityType}' is not of the correct shape. A materialization condition must be a LambdaExpression of 'Func<ValueBuffer, IEntityType>' Processing of the LINQ expression '{expression}' by '{visitor}' failed. This may indicate either a bug or a limitation in Entity Framework. See https://go.microsoft.com/fwlink/?linkid=2101433 for more detailed information. - The query contains a final projection '{projection}' to type '{queryableType}'. Collections in the final projection must be an 'IEnumerable<T>' type such as 'List<T>'. Consider using 'ToList()' or some other mechanism to convert the 'IQueryable<T>' or 'IOrderedEnumerable<T>' into an 'IEnumerable<T>'. + The query contains a final projection '{projection}' to type '{queryableType}'. Collections in the final projection must be an 'IEnumerable<T>' type such as 'List<T>'. Consider using 'ToList' or some other mechanism to convert the 'IQueryable<T>' or 'IOrderedEnumerable<T>' into an 'IEnumerable<T>'. - Translation of '{expression}' failed. Either source is not an entity type or the specified property does not exist on the entity type. + Translation of '{expression}' failed. Either the query source is not an entity type, or the specified property does not exist on the entity type. - Translation of member '{member}' on entity type '{entityType}' failed. Possibly the specified member is not mapped. + Translation of member '{member}' on entity type '{entityType}' failed. This commonly occurs when the specified member is unmapped. Translation of method '{declaringTypeName}.{methodName}' failed. If you are trying to map your custom function, see https://go.microsoft.com/fwlink/?linkid=2132413 for more information. - Translation of 'string.Equals' method which takes 'StringComparison' argument is not supported. See https://go.microsoft.com/fwlink/?linkid=2129535 for more information. + Translation of the 'string.Equals' overload with a 'StringComparison' parameter is not supported. See https://go.microsoft.com/fwlink/?linkid=2129535 for more information. An attempt was made to use the context while it is being configured. A DbContext instance cannot be used inside 'OnConfiguring' since it is still being configured at this point. This can happen if a second operation is started on this context before a previous operation completed. Any instance members are not guaranteed to be thread safe. @@ -1251,25 +1251,25 @@ The property '{1_entityType}.{0_property}' is being accessed using the '{referenceMethod}' method, but is defined in the model as a collection navigation. Use the '{collectionMethod}' method to access collection navigation properties. - The navigation '{1_entityType}.{0_navigation}' cannot have 'IsLoaded' set to false because the referenced entity is non-null and therefore is loaded. + The navigation '{1_entityType}.{0_navigation}' cannot have 'IsLoaded' set to false because the referenced entity is non-null and is therefore loaded. - The principal and dependent ends of the relationship cannot be flipped once foreign key or principal key properties have been specified. + The principal and dependent ends of the relationship cannot be inverted once foreign key or principal key properties have been specified. - The association between entity types '{firstType}' and '{secondType}' has been severed but the relationship is either marked as 'Required' or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, then setup the relationship to use cascade deletes. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. + The association between entity types '{firstType}' and '{secondType}' has been severed, but the relationship is either marked as required or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, configure the relationship to use cascade deletes. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values. - The association between entities '{firstType}' and '{secondType}' with the key value '{secondKeyValue}' has been severed but the relationship is either marked as 'Required' or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, then setup the relationship to use cascade deletes. + The association between entities '{firstType}' and '{secondType}' with the key value '{secondKeyValue}' has been severed, but the relationship is either marked as required or is implicitly required because the foreign key is not nullable. If the dependent/child entity should be deleted when a required relationship is severed, configure the relationship to use cascade deletes. '{entityType}.{navigation}' cannot be configured as required since it represents a skip navigation. - 'ObservableCollection<T>.Clear()' is not supported because it uses the 'INotifyCollectionChanged' 'Reset' operation, which does not supply the items removed. Either use multiple calls to 'Remove' or use a notifying collection that supports 'Clear', such as 'Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>'. + 'ObservableCollection<T>.Clear' is not supported because it uses the 'INotifyCollectionChanged' 'Reset' operation, which does not supply the items removed. Either use multiple calls to 'Remove', or use a notifying collection that supports 'Clear', such as 'Microsoft.EntityFrameworkCore.ChangeTracking.ObservableHashSet<T>'. - Maximum number of retries ({retryLimit}) exceeded while executing database operations with '{strategy}'. See inner exception for the most recent failure. + The maximum number of retries ({retryLimit}) was exceeded while executing database operations with '{strategy}'. See the inner exception for the most recent failure. Runtime parameter extraction lambda must have one QueryContext parameter. @@ -1287,19 +1287,19 @@ The seed entity for entity type '{entityType}' cannot be added because another seed entity with the key value '{keyValue}' has already been added. - The seed entity for entity type '{entityType}' cannot be added because the value provided for the property '{property}' is not of the type '{type}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values. + The seed entity for entity type '{entityType}' cannot be added because the value provided for the property '{property}' is not of type '{type}'. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values. - The seed entity for entity type '{entityType}' cannot be added because the value '{value}' provided for the property '{property}' is not of the type '{type}'. + The seed entity for entity type '{entityType}' cannot be added because the value '{value}' provided for the property '{property}' is not of type '{type}'. - The seed entity for entity type '{entityType}' cannot be added because there was no value provided for the required property '{property}'. + The seed entity for entity type '{entityType}' cannot be added because no value was provided for the required property '{property}'. - The seed entity for entity type '{entityType}' cannot be added because it has the navigation '{navigation}' set. To seed relationships you need to add the related entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values. + The seed entity for entity type '{entityType}' cannot be added because it has the navigation '{navigation}' set. To seed relationships, add the related entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the involved property values. - The seed entity for entity type '{entityType}' with the key value '{keyValue}' cannot be added because it has the navigation '{navigation}' set. To seed relationships you need to add the related entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}. + The seed entity for entity type '{entityType}' with the key value '{keyValue}' cannot be added because it has the navigation '{navigation}' set. To seed relationships, add the related entity seed to '{relatedEntityType}' and specify the foreign key values {foreignKeyProperties}. The seed entity for entity type '{entityType}' cannot be added because a non-zero value is required for property '{property}'. Consider providing a negative value to avoid collisions with non-seed data. @@ -1329,7 +1329,7 @@ When performing a set operation, both operands must have the same 'Include' operations. - Entity type '{entityType}' is in shadow-state. A valid model requires all entity types to have corresponding CLR type. + The entity type '{entityType}' is in shadow state. A valid model requires all entity types to have corresponding CLR type. The shared type entity type '{entityType}' cannot have a base type. @@ -1341,10 +1341,10 @@ An attempt was made to register an instance for the '{scope}' service '{service}'. Instances can only be registered for 'Singleton' services. - The foreign key {foreignKeyProperties} cannot be set for the skip navigation '{navigation}' as it uses the join entity type '{joinType}' while the inverse skip navigation '{inverse}' is using the join entity type '{inverseJoinType}'. The inverse should use the same join entity type. + The foreign key {foreignKeyProperties} cannot be set for the skip navigation '{navigation}' as it uses the join entity type '{joinType}' while the inverse skip navigation '{inverse}' is using the join entity type '{inverseJoinType}'. The inverse navigation must use the same join entity type. - The skip navigation '{inverse}' using the join entity type '{inverseJoinType}' cannot be set as the inverse of '{navigation}' that uses the join entity type '{joinType}'. The inverse should use the same join entity type. + The skip navigation '{inverse}' using the join entity type '{inverseJoinType}' cannot be set as the inverse of '{navigation}', which uses the join entity type '{joinType}'. The inverse navigation must use the same join entity type. The foreign key {foreignKeyProperties} cannot be used for the skip navigation '{2_entityType}.{1_navigation}' because it is expected to be on the dependent entity type '{dependentEntityType}'. @@ -1356,16 +1356,16 @@ The skip navigation '{skipNavigation}' cannot be removed because it is set as the inverse of the skip navigation '{inverseSkipNavigation}' on '{referencingEntityType}'. All referencing skip navigations must be removed before this skip navigation can be removed. - The skip navigation '{1_entityType}.{0_navigation}' doesn't have a foreign key associated with it. Every skip navigation should have a configured foreign key. + The skip navigation '{1_entityType}.{0_navigation}' doesn't have a foreign key associated with it. Every skip navigation must have a configured foreign key. - The skip navigation '{1_entityType}.{0_navigation}' doesn't have an inverse configured. Every skip navigation should have an inverse skip navigation. + The skip navigation '{1_entityType}.{0_navigation}' doesn't have an inverse navigation configured. Every skip navigation should must an inverse skip navigation. The skip navigation '{1_entityType}.{0_navigation}' is not a collection. Only collection skip navigation properties are currently supported. - The skip navigation '{inverse}' declared on the entity type '{inverseEntityType}' cannot be set as the inverse of '{navigation}' that targets '{targetEntityType}'. The inverse should be declared on the target entity type. + The skip navigation '{inverse}' declared on the entity type '{inverseEntityType}' cannot be set as the inverse of '{navigation}', which targets '{targetEntityType}'. The inverse navigation should be declared on the target entity type. The skip navigation '{navigation}' cannot be removed from the entity type '{entityType}' because it is defined on the entity type '{otherEntityType}'. @@ -1377,22 +1377,22 @@ The property '{1_entityType}.{0_property}' cannot be assigned a temporary value. Temporary values can only be assigned to properties configured to use store-generated values. - The property '{1_entityType}.{0_property}' has a temporary value while attempting to change the entity's state to '{state}'. Either set a permanent value explicitly or ensure that the database is configured to generate values for this property. + The property '{1_entityType}.{0_property}' has a temporary value while attempting to change the entity's state to '{state}'. Either set a permanent value explicitly, or ensure that the database is configured to generate values for this property. - The instance of entity type '{runtimeEntityType}' cannot be tracked as the entity type '{entityType}' because they are not in the same hierarchy. + The instance of entity type '{runtimeEntityType}' cannot be tracked as the entity type '{entityType}' because the two types are not in the same hierarchy. - Current provider doesn't support System.Transaction. + The current provider doesn't support System.Transaction. - The LINQ expression '{expression}' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either 'AsEnumerable()', 'AsAsyncEnumerable()', 'ToList()', or 'ToListAsync()'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. + The LINQ expression '{expression}' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. - The LINQ expression '{expression}' could not be translated. Additional information: {details} Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either 'AsEnumerable()', 'AsAsyncEnumerable()', 'ToList()', or 'ToListAsync()'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. + The LINQ expression '{expression}' could not be translated. Additional information: {details} Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. - Type '{type}' is not been configured as shared type in the model. Before calling 'UsingEntity', please mark the type as shared or add the entity type in the model as shared entity. + The type '{type}' is not been configured as a shared type in the model. Before calling 'UsingEntity', please mark the type as shared or add the entity type in the model as a shared entity. Unable to materialize entity of type '{entityType}'. No discriminators matched '{discriminator}'. @@ -1416,13 +1416,13 @@ The value of '{entityType}.{property}' is unknown when attempting to save changes. This is because the property is also part of a foreign key for which the principal entity in the relationship is not known. - The unnamed index on the entity type '{entityType}' with properties {indexPropertyList} is invalid. The property '{propertyName}' was ignored by [NotMapped] attribute or 'Ignore()' in 'OnModelCreating'. An index cannot use such properties. + The unnamed index on the entity type '{entityType}' with properties {indexPropertyList} is invalid. The property '{propertyName}' was marked as unmapped by [NotMapped] attribute or 'Ignore()' in 'OnModelCreating'. An index cannot use unmapped properties. - An unnamed index on the entity type '{entityType}' specifies properties {indexPropertyList}. But no property with name '{propertyName}' exists on that entity type or any of its base types. + An unnamed index on the entity type '{entityType}' specifies properties {indexPropertyList}, but no property with name '{propertyName}' exists on that entity type or any of its base types. - The entity type '{entityType}' has a defining navigation and the supplied entity is currently not being tracked. To start tracking this entity call '{referenceCall}' or '{collectionCall}' on the owner entry. + The entity type '{entityType}' has a defining navigation and the supplied entity is currently not being tracked. To start tracking this entity, call '{referenceCall}' or '{collectionCall}' on the owner entry. The value for property '{1_entityType}.{0_property}' cannot be set to null because its type is '{propertyType}' which is not a nullable type. @@ -1431,10 +1431,10 @@ Value generation is not supported for property '{entityType}.{property}' because it has a '{converter}' converter configured. Configure the property to not use value generation using 'ValueGenerated.Never' or 'DatabaseGeneratedOption.None' and specify explicit values instead. - Calling '{visitMethodName}' is not allowed. Visit expression manually for relevant part. + Calling '{visitMethodName}' is not allowed. Visit the expression manually for the relevant part. - Error generated for warning '{eventName}': {message} This exception can be suppressed or logged by passing event ID '{eventId}' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'. + An error was generated for warning '{eventName}': {message} This exception can be suppressed or logged by passing event ID '{eventId}' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'. The type '{entityType}' cannot have weak entity type '{baseType}' as the base type. diff --git a/test/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs b/test/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs index 9d6821bcc46..dfbd3231b98 100644 --- a/test/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs +++ b/test/EFCore.Specification.Tests/Query/GearsOfWarQueryTestBase.cs @@ -6637,7 +6637,7 @@ public virtual Task Collection_navigation_ofType_filter_works(bool async) public virtual async Task Include_after_select_with_cast_throws(bool async) { Assert.Equal( - "Include has been used on non entity queryable.", + CoreStrings.IncludeOnNonEntity, (await Assert.ThrowsAsync( () => AssertQuery( async, @@ -6650,7 +6650,7 @@ public virtual async Task Include_after_select_with_cast_throws(bool async) public virtual async Task Include_after_select_with_entity_projection_throws(bool async) { Assert.Equal( - "Include has been used on non entity queryable.", + CoreStrings.IncludeOnNonEntity, (await Assert.ThrowsAsync( () => AssertQuery( async, @@ -6662,7 +6662,7 @@ public virtual async Task Include_after_select_with_entity_projection_throws(boo public virtual async Task Include_after_select_anonymous_projection_throws(bool async) { Assert.Equal( - "Include has been used on non entity queryable.", + CoreStrings.IncludeOnNonEntity, (await Assert.ThrowsAsync( () => AssertQuery( async, @@ -6674,7 +6674,7 @@ public virtual async Task Include_after_select_anonymous_projection_throws(bool public virtual async Task Include_after_Select_throws(bool async) { Assert.Equal( - "Include has been used on non entity queryable.", + CoreStrings.IncludeOnNonEntity, (await Assert.ThrowsAsync( () => AssertQuery( async, @@ -6686,7 +6686,7 @@ public virtual async Task Include_after_Select_throws(bool async) public virtual async Task Include_after_SelectMany_throws(bool async) { Assert.Equal( - "Include has been used on non entity queryable.", + CoreStrings.IncludeOnNonEntity, (await Assert.ThrowsAsync( () => AssertQuery( async, diff --git a/test/EFCore.SqlServer.FunctionalTests/ExecutionStrategyTest.cs b/test/EFCore.SqlServer.FunctionalTests/ExecutionStrategyTest.cs index 3d4edbf054a..058c379413c 100644 --- a/test/EFCore.SqlServer.FunctionalTests/ExecutionStrategyTest.cs +++ b/test/EFCore.SqlServer.FunctionalTests/ExecutionStrategyTest.cs @@ -102,7 +102,7 @@ private void Test_commit_failure(bool realFailure, Action method may only be used within LINQ queries.", + CoreStrings.PropertyMethodInvoked, Assert.Throws(() => EF.Property(new object(), "")).Message); } }