CoreStrings CoreStrings Class

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Syntax

Declaration

public static class CoreStringsPublic Module CoreStrings

Inheritance Hierarchy

  • System.Object
    System.Object
  • CoreStrings
    CoreStrings

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Properties summary

A second operation started on this context before a previous operation completed. Any instance members are not guaranteed to be thread safe.

Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling Dispose() on the context, or wrapping the context in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.

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. For WinForms bind to DbSet.Local.ToBindingList(). For ASP.NET WebForms bind to DbSet.ToList() or use Model Binding.

An exception occured while reading a database value. See the inner exception for more information.

An exception was thrown while attempting to evaluate a LINQ query parameter expression. To show additional information call EnableSensitiveDataLogging() when overriding DbContext.OnConfiguring.

The block size used for Hi-Lo value generation must be positive. When the Hi-Lo generator is backed by a SQL sequence this means that the sequence increment must be positive.

The Include operator is not implemented by the current database provider.

Unhandled operation: MemberInitExpression binding is not a MemberAssignment

The provider for the source IQueryable doesn't implement IAsyncQueryProvider. Only providers that implement IEntityQueryProvider can be used for Entity Framework asynchronous operations.

Sequence contains more than one element

Entity Framework services have not been added to the internal service provider. Either remove the call to UseInternalServiceProvider so that EF will manage its own internal services, or use the method from your database provider to add the required services to the service provider (e.g. AddEntityFrameworkSqlServer).

Sequence contains no elements

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.

Cannot change ObservableHashSet during a CollectionChanged event.

The EF.Property<T> method may only be used within LINQ queries.

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.

An attempt was made to use the model while it was being created. A DbContext instance cannot be used inside OnModelCreating in any way that makes use of the model that is being created.

The principal and dependent ends of the relationship cannot be flipped once foreign key or principal key properties have been specified.

'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>'.

Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data, this mode should only be enabled during development.

Methods summary

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 child/dependent side could not be determined for the one-to-one relationship that was detected between '{dependentToPrincipalNavigationSpecification}' and '{principalToDependentNavigationSpecification}'. To identify the child/dependent side of the relationship, configure the foreign key property. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details.

The annotation '{annotation}' was not found. Ensure that the annotation has been added.

The string argument '{argumentName}' cannot be empty.

The property '{property}' of the argument '{argument}' cannot be null.

The specified field '{field}' of type '{fieldType}' cannot be used for the property '{entityType}.{property}' of type '{propertyType}'. Only backing fields of types that are assignable from the property type can be used.

The type '{givenType}' cannot be used a a value generator because it does not inherit from '{expectedType}'.

The property '{property}' on entity type '{entityType}' cannot be marked as nullable/optional because the type of the property is '{propertyType}' which is not a nullable type. Any property can be marked as non-nullable/required, but only properties of nullable types and which are not part of primary key can be marked as nullable/optional.

The property '{property}' on entity type '{entityType}' 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.

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.

Unable to create an instance of type entity type '{entityType}' because it is abstract. Either make it non-abstract or consider mapping at least one derived type.

The entity type '{entityType}' is configured to use the '{changeTrackingStrategy}' change tracking strategy but does not implement the required '{notificationInterface}' interface.

Unable to save changes because a circular dependency was detected in the data to be saved: '{cycle}'.

The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{baseEntityType}' is a descendent of '{entityType}'.

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.

The collection argument '{argumentName}' must contain at least one element.

The property '{property}' on entity type '{entityType}' is being accessed using the '{CollectionMethod}' method, but is defined in the model as a non-collection, reference navigation property. Use the '{ReferenceMethod}' method to access reference navigation properties.

There are multiple properties pointing to navigation '{navigation}' in entity type '{entityType}'. To define composite foreign key using data annotations, use ForeignKeyAttribute on navigation.

Entity type '{entityType}' has composite primary key defined with data annotations. To set composite primary key, use fluent API.

The property '{property}' cannot be added to the entity type '{entityType}' because a navigation property with the same name already exists on entity type '{duplicateEntityType}'.

The navigation property '{navigation}' cannot be added to the entity type '{entityType}' because a property with the same name already exists on entity type '{duplicateEntityType}'.

Cannot create a relationship between '{newPrincipalEntityType}.{newPrincipalNavigation}' and '{newDependentEntityType}.{newDependentNavigation}', because there already is a relationship between '{existingPrincipalEntityType}.{existingPrincipalNavigation}' and '{existingDependentEntityType}.{existingDependentNavigation}'. Navigation properties can only participate in a single relationship.

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 database generated a null value for non-nullable property '{property}' of entity type '{entityType}'. Ensure value generation configuration in the database matches the configuration in the model.

You are configuring a relationship between '{dependentEntityType}' and '{principalEntityType}' but have specified a foreign key on '{entityType}'. The foreign key must be defined on a type that is part of the relationship.

Unable to set a base type for entity type '{entityType}' because it has one or more keys defined.

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 included in a DbSet property on your context, referenced in a configuration call to ModelBuilder, or referenced from a navigation property on a type that is included in the model.

The annotation '{annotation}' cannot be added because an annotation with the same name already exists.

The entity type '{entityType}' cannot be added to the model because an entity with the same name already exists.

The foreign key {foreignKey} cannot be added to the entity type '{entityType}' because a foreign key on the same properties already exists on entity type '{duplicateEntityType}' and also targets the key {key} on '{principalType}'.

The index {index} cannot be added to the entity type '{entityType}' because an index on the same properties already exists on entity type '{duplicateEntityType}'.

The key {key} cannot be added to the entity type '{entityType}' because a key on the same properties already exists on entity type '{duplicateEntityType}'.

The navigation property '{navigation}' cannot be added to the entity type '{entityType}' because a navigation property with the same name already exists on entity type '{duplicateEntityType}'.

The type '{entityType}' cannot have base type '{baseType}' because both types include the navigations: {navigations}.

The type '{entityType}' cannot have base type '{baseType}' because both types include the properties: {properties}.

The property '{property}' cannot be added to the entity type '{entityType}' because a property with the same name already exists on entity type '{duplicateEntityType}'.

The entity type '{entityType}' requires a primary key to be defined.

The entity type '{entityType}' cannot be removed because '{derivedEntityType}' is derived from it. All derived entity types must be removed or redefined before the entity type can be removed.

The entity type '{entityType}' cannot be removed because it is being referenced by foreign key {foreignKey} on '{referencingEntityType}'. All referencing foreign keys must be removed or redefined before the entity type can be removed.

The entity types '{firstEntityType}' and '{secondEntityType}' do not belong to the same model.

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 should 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.

An exception occured while reading a database value for property '{entityType}.{property}'. See the inner exception for more information.

An exception occured while reading a database value for property '{entityType}.{property}'. The expected type was '{expectedType}' but the actual value was of type '{actualType}'.

An exception occured while reading a database value for property '{entityType}.{property}'. The expected type was '{expectedType}' but the actual value was null.

An exception occured while reading a database value. The expected type was '{expectedType}' but the actual value was of type '{actualType}'.

An exception occured while reading a database value. The expected type was '{expectedType}' but the actual value was null.

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 the LINQ query parameter expression '{expression}'.

Entity type '{entityType}' is defined with a single key property, but {valuesCount} values were passed to the 'DbSet.Find' method.

Entity type '{entityType}' is defined with a {propertiesCount}-part composite key, but {valuesCount} values were passed to the 'DbSet.Find' method.

The key value at position {index} of the call to 'DbSet<{entityType}>.Find' was of type '{valueType}', which does not match the property type of '{propertyType}'.

The ForeignKeyAttributes on property '{property}' and navigation '{navigation}' in entity type '{entityType}' do not point at each other. The value of ForeignKeyAttribute on property should be navigation name and the value of ForeignKeyAttribute on navigation should be the foreign key property name.

The foreign key {foreignKey} on entity type '{entityType}' cannot be marked as optional because it does not contain any property of a nullable type. Any foreign key can be marked as required, but only foreign keys with at least one property of a nullable type and which is not part of primary key can be marked as optional.

The number of properties specified for the foreign key {foreignKey} on entity type '{dependentType}' does not match the number of properties in the principal key {principalKey} on entity type '{principalType}'.

The specified foreign key properties {foreignKey} are not declared on the entity type '{entityType}'. Ensure foreign key properties are declared on the target entity type.

The property '{property}' cannot be part of a foreign key on '{entityType}' because it is contained in a key defined on a base entity type.

The provided principal entity key '{principalKey}' is not a key on the entity type '{principalEntityType}'.

The types of the properties specified for the foreign key {foreignKey} on entity type '{dependentType}' do not match the types of the properties in the principal key {principalKey} on entity type '{principalType}'.

The edge cannot be added because the graph does not contain vertex '{vertex}'.

The instance of entity type '{entityType}' cannot be tracked because another instance of this type with the same key is already being tracked. When adding new entities, for most key types a unique temporary key value will be created if no key is set (i.e. if the key property is assigned the default value for its type). If you are explicitly setting key values for new entities, ensure they do not collide with existing entities or temporary values generated for other new entities. When attaching existing entities, ensure that only one entity instance with a given key value is attached to the context.

The property '{property}' is not a navigation property of entity type '{entityType}'. The 'Include(string)' method can only be used with a '.' separated list of navigation property names.

The expression '{expression}' passed to the Include operator could not be bound.

The entity type '{entityType}' should derive from '{baseEntityType}' to reflect the hierarchy of the corresponding CLR types.

The specified index properties {index} are not declared on the entity type '{entityType}'. Ensure index properties are declared on the target entity type.

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 NotMappedAttribute or Ignore method on the base type.

The property '{entityType}.{navigation}' is of an interface type ('{propertyType}'). If it is a navigation property manually configure the relationship for this property by casting it to a mapped entity type, otherwise ignore the property from the model.

The entity type related to '{entityType}' cannot be determined because the specified foreign key {foreignKey} references entity type '{principalEntityType}' that it is in the same hierarchy as the entity type that it is declared on '{dependentEntityType}'.

The property expression '{propertyAccessExpression}' is not valid. The expression should represent a property access: 't => t.MyProperty'. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393.

The entity type '{type}' provided for the argument '{argumentName}' must be a reference type.

The value provided for argument '{argumentName}' must be a valid value of enum type '{enumType}'.

Unable to create or track an entity of type '{entityType}' because it has a null primary or alternate key value.

The InversePropertyAttribute on property '{property}' on type '{entityType}' is not valid. The property '{referencedProperty}' is not a valid navigation property on the related type '{referencedEntityType}'. Ensure that the property exists and is a valid reference or collection navigation property.

The properties expression '{expression}' is not valid. The expression should represent a property access: 't => t.MyProperty'. When specifying multiple properties use an anonymous type: 't => new {{ t.MyProperty1, t.MyProperty2 }}'.

The expression '{expression}' is not a valid property expression. The expression should represent a property access: 't => t.MyProperty'.

The property list specified using ForeignKeyAttribute on navigation '{navigation}' in entity type '{entityType}' is incorrect. The attribute value should be comma-separated list of property names.

Invalid relationship has been specified using InverseProperty and ForeignKey. The navigation '{navigation}' in entity type '{entityType}' and the navigation '{referencedNavigation}' in entity type '{referencedEntityType}' are related by InversePropertyAttribute but the ForeignKeyAttribute 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 EF to build the service provider by removing the call to {useInternalServiceProvider}, or build replacement services into the service provider before passing it to {useInternalServiceProvider}.

Cannot create a DbSet for '{typeName}' because this type is not included in the model for the context.

The value for property '{property}' of entity type '{entityType}' cannot be set to a value of type '{valueType}' because its type is '{propertyType}'.

The '{factory}' cannot create a value generator for property '{property}' on entity type '{entityType}'. Only integer properties are supported.

InversePropertyAttributes on navigation '{navigation}' in entity type '{entityType}' and on navigation '{referencedNavigation}' in entity type '{referencedEntityType}' are not pointing to each other.

The source IQueryable doesn't implement IAsyncEnumerable<{genericParameter}>. Only sources that implement IAsyncEnumerable can be used for Entity Framework asynchronous operations.

The derived type '{derivedType}' cannot have KeyAttribute on property '{property}' since primary key can only be declared on the root type.

Cannot remove key {key} from entity type '{entityType}' because it is referenced by a foreign key in entity type '{dependentType}'. All foreign keys must be removed or redefined before the referenced key can be removed.

The specified key properties {key} are not declared on the entity type '{entityType}'. Ensure key properties are declared on the target entity type.

The property '{property}' cannot be part of a key on '{entityType}' because it is contained in a foreign key defined on a derived entity type.

The property '{property}' on entity type '{entityType}' 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 '{property}' on entity type '{entityType}' is part of a key and so cannot be modified or marked as modified.

Compiling query model: {newline}'{queryModel}'

An exception occurred in the database while iterating the results of a query.{newline}{error}

An exception occurred in the database while saving changes.{newline}{error}

The Include operation for navigation: '{navigation}' was ignored because the target navigation is not reachable in the final query results.

Including navigation: '{navigation}'

Optimized query model: {newline}'{queryModel}'

The specified field '{field}' could not be found for property '{property}' on entity type '{entityType}'.

Cannot start tracking InternalEntityEntry for entity type '{entityType}' because another InternalEntityEntry is already tracking the same entity.

There are multiple navigations in entity type '{entityType}' which are pointing to same set of properties - '{propertyList}' using ForeignKeyAttribute.

The database providers {storeNames}are available. A context can only be configured to use a single database provider. Configure a database provider by overriding OnConfiguring in your DbContext class or in the AddDbContext method when setting up services.

The database providers {storeNames}are configured. A context can only be configured to use a single database provider.

The type of navigation property '{navigation}' on the entity type '{entityType}' is '{foundType}' which is an array type.. Collection navigation properties cannot be arrays.

The type of navigation property '{navigation}' on the entity type '{entityType}' is '{foundType}' which does not implement ICollection<{targetType}>. Collection navigation properties must implement ICollection<> of the target type.

The type of navigation property '{navigation}' on the entity type '{entityType}' is '{foundType}' for which it was not possible to create a concrete instance. Either initialize the property before use, add a public parameterless constructor to the type, or use a type which can be assigned a HashSet<> or List<>.

The collection navigation property '{navigation}' cannot be added to the entity type '{entityType}' because its CLR type '{clrType}' does not implement 'IEnumerable<{targetType}>'. Collection navigation properties must implement IEnumerable<> of the related entity.

The navigation property '{navigation}' on entity type '{entityType}' cannot be associated with foreign key {targetFk} because it was created for foreign key {actualFk}.

The property '{property}' on entity type '{entityType}' is being accessed using the '{ReferenceMethod}' or '{CollectionMethod}' method, but is defined in the model as a non-navigation property. Use the '{PropertyMethod}' method to access non-navigation properties.

The navigation property '{navigation}' on the entity type '{entityType}' does not have a setter and no writable backing field was found or specified. Read-only collection navigation properties must be initialized before use.

Unable to determine the relationship represented by navigation property '{entityType}.{navigation}' of type '{propertyType}'. Either manually configure the relationship, or ignore this property from the model.

The navigation property '{navigation}' cannot be added to the entity type '{entityType}' because its CLR type '{clrType}' does not match the expected CLR type '{targetType}'.

The navigation property '{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 '{property}' of entity type '{entity}'. Either configure a backing field or use a different '{pam}'.

The navigation property '{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 to shadow state.

The CLR entity materializer cannot be used for entity type '{entityType}' because it is a shadow state entity type. Materialization to a CLR type is only possible for entity types that have a corresponding CLR type.

No backing field could be found for property '{property}' of entity type '{entity}' and the property does not have a getter.

No backing field could be found for property '{property}' of entity type '{entity}' and the property does not have a setter.

The property '{property}' of entity type '{entity}' does not have a getter. Either make the property readable or use a different '{pam}'.

The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{baseEntityType}' is a shadow state entity type while '{entityType}' is not.

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 collection type being used for navigation property '{navigation}' on entity type '{entityType}' does not implement 'INotifyCollectionChanged'. Any entity type configured to use the '{changeTrackingStrategy}' change tracking strategy must use collections that implement 'INotifyCollectionChanged'. Consider using 'ObservableCollection<T>' for this.

The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{entityType}' is a shadow state entity type while '{baseEntityType}' is not.

A parameterless constructor was not found on entity type '{entityType}'. In order to create an instance of '{entityType}' EF 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 '{pam}'.

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.

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 '{property}' of entity type '{entity}' does not have a setter. Either make the property writable or use a different '{pam}'.

The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{clrType}' is not a descendent of '{baseClrType}'.

The '{property}' on entity type '{entityType}' 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}'.

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.

Options extension of type '{optionsExtension}' not found.

The original value for property '{property}' of entity type '{entityType}' 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'.

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.

Cannot call Property for the property '{property}' on entity type '{entityType}' because it is configured as a navigation property. Property can only be used to configure scalar properties.

The property '{property}' on entity type '{entityType}' is marked as null, but this cannot be saved because 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}' cannot be removed from entity type '{entityType}' because it is being used in an index or key. All indexes and keys must be removed or redefined before the property can be removed.

The property '{property}' on entity type '{entityType}' is being accessed using the '{PropertyMethod}' method, but is defined in the model as a navigation property. Use either the '{ReferenceMethod}' or '{CollectionMethod}' method to access navigation properties.

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.

The property '{property}' on entity type '{entityType}' 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 manually configure the database type for it.

The property '{property}' on entity type '{entityType}' is defined to be read-only after it has been saved, but its value has been modified or marked as modified.

The property '{property}' on entity type '{entityType}' 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 '{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}'.

CLR property '{property}' cannot be added to entity type '{entityType}' because it is declared on the CLR type '{clrType}'.

Field '{field}' of entity type '{entity}' is readonly and so cannot be set.

The relationship from '{referencingEntityTypeOrNavigation}' to '{referencedEntityTypeOrNavigation}' with foreign key properties {foreignKeyPropertiesWithTypes} cannot target the primary key {primaryKeyPropertiesWithTypes} because it is not compatible. Configure a principal key or a set of compatible foreign key properties for this relationship.

The property '{property}' on entity type '{entityType}' is being accessed using the '{ReferenceMethod}' method, but is defined in the model as a collection navigation property. Use the '{CollectionMethod}' method to access collection navigation properties.

Navigation property '{navigation}' on entity type '{entityType}' cannot have 'IsLoaded' set to false because the referenced entity is non-null and therefore is loaded.

The association between entity types '{firstType}' and '{secondType}' has been severed but the foreign key for this relationship cannot be set to null. If the dependent entity should be deleted, then setup the relationship to use cascade deletes.

Maximum number of retries ({retryLimit}) exceeded while executing database operations with '{strategy}'. See inner exception for the most recent failure.

A relationship cannot be established from property '{property}' on type '{entityType}' to property '{referencedProperty}' on type '{referencedEntityType}'. Check the values in the InversePropertyAttribute to ensure relationship definitions are unique and reference from one navigation property to its corresponding inverse navigation property.

Entity type '{entityType}' is in shadow-state. A valid model requires all entity types to have corresponding CLR type.

The key {key} on entity type '{entityType}' contains properties in shadow state - {shadowProperties}.

The property '{property}' on entity type '{entityType}' has a temporary value. Either set a permanent value explicitly or ensure that the database is configured to generate values for this property.

The property '{property}' on entity type '{entityType}' 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 value for property '{property}' of entity type '{entityType}' cannot be set to null because its type is '{propertyType}' which is not a nullable type.

Warning as error exception for warning '{eventId}': {message} To suppress this Exception use the DbContextOptionsBuilder.ConfigureWarnings API. ConfigureWarnings can be used when overriding the DbContext.OnConfiguring method or using AddDbContext on the application service provider.

{message} To configure this warning use the DbContextOptionsBuilder.ConfigureWarnings API (event id '{eventId}'). ConfigureWarnings can be used when overriding the DbContext.OnConfiguring method or using AddDbContext on the application service provider.

Property '{property}' on entity type '{entityType}' is of type '{actualType}' but the generic type provided is of type '{genericType}'.

Cannot start tracking InternalEntityEntry for entity type '{entityType}' because it was created by a different StateManager instance.

Properties

  • ConcurrentMethodInvocation
    ConcurrentMethodInvocation

    A second operation started on this context before a previous operation completed. Any instance members are not guaranteed to be thread safe.

    public static string ConcurrentMethodInvocation { get; }Public Shared ReadOnly Property ConcurrentMethodInvocation As String

    Property Value

    • System.String
      System.String
  • ContextDisposed
    ContextDisposed

    Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling Dispose() on the context, or wrapping the context in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.

    public static string ContextDisposed { get; }Public Shared ReadOnly Property ContextDisposed As String

    Property Value

    • System.String
      System.String
  • DataBindingWithIListSource
    DataBindingWithIListSource

    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. For WinForms bind to DbSet.Local.ToBindingList(). For ASP.NET WebForms bind to DbSet.ToList() or use Model Binding.

    public static string DataBindingWithIListSource { get; }Public Shared ReadOnly Property DataBindingWithIListSource As String

    Property Value

    • System.String
      System.String
  • ErrorMaterializingValue
    ErrorMaterializingValue

    An exception occured while reading a database value. See the inner exception for more information.

    public static string ErrorMaterializingValue { get; }Public Shared ReadOnly Property ErrorMaterializingValue As String

    Property Value

    • System.String
      System.String
  • ExpressionParameterizationException
    ExpressionParameterizationException

    An exception was thrown while attempting to evaluate a LINQ query parameter expression. To show additional information call EnableSensitiveDataLogging() when overriding DbContext.OnConfiguring.

    public static string ExpressionParameterizationException { get; }Public Shared ReadOnly Property ExpressionParameterizationException As String

    Property Value

    • System.String
      System.String
  • HiLoBadBlockSize
    HiLoBadBlockSize

    The block size used for Hi-Lo value generation must be positive. When the Hi-Lo generator is backed by a SQL sequence this means that the sequence increment must be positive.

    public static string HiLoBadBlockSize { get; }Public Shared ReadOnly Property HiLoBadBlockSize As String

    Property Value

    • System.String
      System.String
  • IncludeNotImplemented
    IncludeNotImplemented

    The Include operator is not implemented by the current database provider.

    public static string IncludeNotImplemented { get; }Public Shared ReadOnly Property IncludeNotImplemented As String

    Property Value

    • System.String
      System.String
  • InvalidMemberInitBinding
    InvalidMemberInitBinding

    Unhandled operation: MemberInitExpression binding is not a MemberAssignment

    public static string InvalidMemberInitBinding { get; }Public Shared ReadOnly Property InvalidMemberInitBinding As String

    Property Value

    • System.String
      System.String
  • IQueryableProviderNotAsync
    IQueryableProviderNotAsync

    The provider for the source IQueryable doesn't implement IAsyncQueryProvider. Only providers that implement IEntityQueryProvider can be used for Entity Framework asynchronous operations.

    public static string IQueryableProviderNotAsync { get; }Public Shared ReadOnly Property IQueryableProviderNotAsync As String

    Property Value

    • System.String
      System.String
  • MoreThanOneElement
    MoreThanOneElement

    Sequence contains more than one element

    public static string MoreThanOneElement { get; }Public Shared ReadOnly Property MoreThanOneElement As String

    Property Value

    • System.String
      System.String
  • NoEfServices
    NoEfServices

    Entity Framework services have not been added to the internal service provider. Either remove the call to UseInternalServiceProvider so that EF will manage its own internal services, or use the method from your database provider to add the required services to the service provider (e.g. AddEntityFrameworkSqlServer).

    public static string NoEfServices { get; }Public Shared ReadOnly Property NoEfServices As String

    Property Value

    • System.String
      System.String
  • NoElements
    NoElements

    Sequence contains no elements

    public static string NoElements { get; }Public Shared ReadOnly Property NoElements As String

    Property Value

    • System.String
      System.String
  • NoProviderConfigured
    NoProviderConfigured

    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 { get; }Public Shared ReadOnly Property NoProviderConfigured As String

    Property Value

    • System.String
      System.String
  • ObservableCollectionReentrancy
    ObservableCollectionReentrancy

    Cannot change ObservableHashSet during a CollectionChanged event.

    public static string ObservableCollectionReentrancy { get; }Public Shared ReadOnly Property ObservableCollectionReentrancy As String

    Property Value

    • System.String
      System.String
  • PropertyMethodInvoked
    PropertyMethodInvoked

    The EF.Property<T> method may only be used within LINQ queries.

    public static string PropertyMethodInvoked { get; }Public Shared ReadOnly Property PropertyMethodInvoked As String

    Property Value

    • System.String
      System.String
  • RecursiveOnConfiguring
    RecursiveOnConfiguring

    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.

    public static string RecursiveOnConfiguring { get; }Public Shared ReadOnly Property RecursiveOnConfiguring As String

    Property Value

    • System.String
      System.String
  • RecursiveOnModelCreating
    RecursiveOnModelCreating

    An attempt was made to use the model while it was being created. A DbContext instance cannot be used inside OnModelCreating in any way that makes use of the model that is being created.

    public static string RecursiveOnModelCreating { get; }Public Shared ReadOnly Property RecursiveOnModelCreating As String

    Property Value

    • System.String
      System.String
  • RelationshipCannotBeInverted
    RelationshipCannotBeInverted

    The principal and dependent ends of the relationship cannot be flipped once foreign key or principal key properties have been specified.

    public static string RelationshipCannotBeInverted { get; }Public Shared ReadOnly Property RelationshipCannotBeInverted As String

    Property Value

    • System.String
      System.String
  • ResetNotSupported
    ResetNotSupported

    '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 { get; }Public Shared ReadOnly Property ResetNotSupported As String

    Property Value

    • System.String
      System.String
  • SensitiveDataLoggingEnabled
    SensitiveDataLoggingEnabled

    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 string SensitiveDataLoggingEnabled { get; }Public Shared ReadOnly Property SensitiveDataLoggingEnabled As String

    Property Value

    • System.String
      System.String

Methods

  • AbstractLeafEntityType(Object)
    AbstractLeafEntityType(Object)

    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.

    public static string AbstractLeafEntityType(object entityType)Public Shared Function AbstractLeafEntityType(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • AmbiguousOneToOneRelationship(Object, Object)
    AmbiguousOneToOneRelationship(Object, Object)

    The child/dependent side could not be determined for the one-to-one relationship that was detected between '{dependentToPrincipalNavigationSpecification}' and '{principalToDependentNavigationSpecification}'. To identify the child/dependent side of the relationship, configure the foreign key property. See http://go.microsoft.com/fwlink/?LinkId=724062 for more details.

    public static string AmbiguousOneToOneRelationship(object dependentToPrincipalNavigationSpecification, object principalToDependentNavigationSpecification)Public Shared Function AmbiguousOneToOneRelationship(dependentToPrincipalNavigationSpecification As Object, principalToDependentNavigationSpecification As Object) As String

    Parameters

    • dependentToPrincipalNavigationSpecification
      System.Object
      System.Object
    • principalToDependentNavigationSpecification
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • AnnotationNotFound(Object)
    AnnotationNotFound(Object)

    The annotation '{annotation}' was not found. Ensure that the annotation has been added.

    public static string AnnotationNotFound(object annotation)Public Shared Function AnnotationNotFound(annotation As Object) As String

    Parameters

    • annotation
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ArgumentIsEmpty(Object)
    ArgumentIsEmpty(Object)

    The string argument '{argumentName}' cannot be empty.

    public static string ArgumentIsEmpty(object argumentName)Public Shared Function ArgumentIsEmpty(argumentName As Object) As String

    Parameters

    • argumentName
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ArgumentPropertyNull(Object, Object)
    ArgumentPropertyNull(Object, Object)

    The property '{property}' of the argument '{argument}' cannot be null.

    public static string ArgumentPropertyNull(object property, object argument)Public Shared Function ArgumentPropertyNull(property As Object, argument As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • argument
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • BadBackingFieldType(Object, Object, Object, Object, Object)
    BadBackingFieldType(Object, Object, Object, Object, Object)

    The specified field '{field}' of type '{fieldType}' cannot be used for the property '{entityType}.{property}' of type '{propertyType}'. Only backing fields of types that are assignable from the property type can be used.

    public static string BadBackingFieldType(object field, object fieldType, object entityType, object property, object propertyType)Public Shared Function BadBackingFieldType(field As Object, fieldType As Object, entityType As Object, property As Object, propertyType As Object) As String

    Parameters

    • field
      System.Object
      System.Object
    • fieldType
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • BadValueGeneratorType(Object, Object)
    BadValueGeneratorType(Object, Object)

    The type '{givenType}' cannot be used a a value generator because it does not inherit from '{expectedType}'.

    public static string BadValueGeneratorType(object givenType, object expectedType)Public Shared Function BadValueGeneratorType(givenType As Object, expectedType As Object) As String

    Parameters

    • givenType
      System.Object
      System.Object
    • expectedType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CannotBeNullable(Object, Object, Object)
    CannotBeNullable(Object, Object, Object)

    The property '{property}' on entity type '{entityType}' cannot be marked as nullable/optional because the type of the property is '{propertyType}' which is not a nullable type. Any property can be marked as non-nullable/required, but only properties of nullable types and which are not part of primary key can be marked as nullable/optional.

    public static string CannotBeNullable(object property, object entityType, object propertyType)Public Shared Function CannotBeNullable(property As Object, entityType As Object, propertyType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CannotBeNullablePK(Object, Object)
    CannotBeNullablePK(Object, Object)

    The property '{property}' on entity type '{entityType}' 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.

    public static string CannotBeNullablePK(object property, object entityType)Public Shared Function CannotBeNullablePK(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CannotCreateValueGenerator(Object)
    CannotCreateValueGenerator(Object)

    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.

    public static string CannotCreateValueGenerator(object generatorType)Public Shared Function CannotCreateValueGenerator(generatorType As Object) As String

    Parameters

    • generatorType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CannotMaterializeAbstractType(Object)
    CannotMaterializeAbstractType(Object)

    Unable to create an instance of type entity type '{entityType}' because it is abstract. Either make it non-abstract or consider mapping at least one derived type.

    public static string CannotMaterializeAbstractType(object entityType)Public Shared Function CannotMaterializeAbstractType(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ChangeTrackingInterfaceMissing(Object, Object, Object)
    ChangeTrackingInterfaceMissing(Object, Object, Object)

    The entity type '{entityType}' is configured to use the '{changeTrackingStrategy}' change tracking strategy but does not implement the required '{notificationInterface}' interface.

    public static string ChangeTrackingInterfaceMissing(object entityType, object changeTrackingStrategy, object notificationInterface)Public Shared Function ChangeTrackingInterfaceMissing(entityType As Object, changeTrackingStrategy As Object, notificationInterface As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • changeTrackingStrategy
      System.Object
      System.Object
    • notificationInterface
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CircularDependency(Object)
    CircularDependency(Object)

    Unable to save changes because a circular dependency was detected in the data to be saved: '{cycle}'.

    public static string CircularDependency(object cycle)Public Shared Function CircularDependency(cycle As Object) As String

    Parameters

    • cycle
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CircularInheritance(Object, Object)
    CircularInheritance(Object, Object)

    The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{baseEntityType}' is a descendent of '{entityType}'.

    public static string CircularInheritance(object entityType, object baseEntityType)Public Shared Function CircularInheritance(entityType As Object, baseEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • baseEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ClrPropertyOnShadowEntity(Object, Object)
    ClrPropertyOnShadowEntity(Object, Object)

    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.

    public static string ClrPropertyOnShadowEntity(object property, object entityType)Public Shared Function ClrPropertyOnShadowEntity(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CollectionArgumentIsEmpty(Object)
    CollectionArgumentIsEmpty(Object)

    The collection argument '{argumentName}' must contain at least one element.

    public static string CollectionArgumentIsEmpty(object argumentName)Public Shared Function CollectionArgumentIsEmpty(argumentName As Object) As String

    Parameters

    • argumentName
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CollectionIsReference(Object, Object, Object, Object)
    CollectionIsReference(Object, Object, Object, Object)

    The property '{property}' on entity type '{entityType}' is being accessed using the '{CollectionMethod}' method, but is defined in the model as a non-collection, reference navigation property. Use the '{ReferenceMethod}' method to access reference navigation properties.

    public static string CollectionIsReference(object property, object entityType, object CollectionMethod, object ReferenceMethod)Public Shared Function CollectionIsReference(property As Object, entityType As Object, CollectionMethod As Object, ReferenceMethod As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • CollectionMethod
      System.Object
      System.Object
    • ReferenceMethod
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CompositeFkOnProperty(Object, Object)
    CompositeFkOnProperty(Object, Object)

    There are multiple properties pointing to navigation '{navigation}' in entity type '{entityType}'. To define composite foreign key using data annotations, use ForeignKeyAttribute on navigation.

    public static string CompositeFkOnProperty(object navigation, object entityType)Public Shared Function CompositeFkOnProperty(navigation As Object, entityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CompositePKWithDataAnnotation(Object)
    CompositePKWithDataAnnotation(Object)

    Entity type '{entityType}' has composite primary key defined with data annotations. To set composite primary key, use fluent API.

    public static string CompositePKWithDataAnnotation(object entityType)Public Shared Function CompositePKWithDataAnnotation(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ConflictingNavigation(Object, Object, Object)
    ConflictingNavigation(Object, Object, Object)

    The property '{property}' cannot be added to the entity type '{entityType}' because a navigation property with the same name already exists on entity type '{duplicateEntityType}'.

    public static string ConflictingNavigation(object property, object entityType, object duplicateEntityType)Public Shared Function ConflictingNavigation(property As Object, entityType As Object, duplicateEntityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • duplicateEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ConflictingProperty(Object, Object, Object)
    ConflictingProperty(Object, Object, Object)

    The navigation property '{navigation}' cannot be added to the entity type '{entityType}' because a property with the same name already exists on entity type '{duplicateEntityType}'.

    public static string ConflictingProperty(object navigation, object entityType, object duplicateEntityType)Public Shared Function ConflictingProperty(navigation As Object, entityType As Object, duplicateEntityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • duplicateEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ConflictingRelationshipNavigation(Object, Object, Object, Object, Object, Object, Object, Object)
    ConflictingRelationshipNavigation(Object, Object, Object, Object, Object, Object, Object, Object)

    Cannot create a relationship between '{newPrincipalEntityType}.{newPrincipalNavigation}' and '{newDependentEntityType}.{newDependentNavigation}', because there already is a relationship between '{existingPrincipalEntityType}.{existingPrincipalNavigation}' and '{existingDependentEntityType}.{existingDependentNavigation}'. Navigation properties can only participate in a single relationship.

    public static string ConflictingRelationshipNavigation(object newPrincipalEntityType, object newPrincipalNavigation, object newDependentEntityType, object newDependentNavigation, object existingPrincipalEntityType, object existingPrincipalNavigation, object existingDependentEntityType, object existingDependentNavigation)Public Shared Function ConflictingRelationshipNavigation(newPrincipalEntityType As Object, newPrincipalNavigation As Object, newDependentEntityType As Object, newDependentNavigation As Object, existingPrincipalEntityType As Object, existingPrincipalNavigation As Object, existingDependentEntityType As Object, existingDependentNavigation As Object) As String

    Parameters

    • newPrincipalEntityType
      System.Object
      System.Object
    • newPrincipalNavigation
      System.Object
      System.Object
    • newDependentEntityType
      System.Object
      System.Object
    • newDependentNavigation
      System.Object
      System.Object
    • existingPrincipalEntityType
      System.Object
      System.Object
    • existingPrincipalNavigation
      System.Object
      System.Object
    • existingDependentEntityType
      System.Object
      System.Object
    • existingDependentNavigation
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • CustomMetadata(Object, Object, Object)
    CustomMetadata(Object, Object, Object)

    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(object method, object interfaceType, object concreteType)Public Shared Function CustomMetadata(method As Object, interfaceType As Object, concreteType As Object) As String

    Parameters

    • method
      System.Object
      System.Object
    • interfaceType
      System.Object
      System.Object
    • concreteType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DatabaseGeneratedNull(Object, Object)
    DatabaseGeneratedNull(Object, Object)

    The database generated a null value for non-nullable property '{property}' of entity type '{entityType}'. Ensure value generation configuration in the database matches the configuration in the model.

    public static string DatabaseGeneratedNull(object property, object entityType)Public Shared Function DatabaseGeneratedNull(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DependentEntityTypeNotInRelationship(Object, Object, Object)
    DependentEntityTypeNotInRelationship(Object, Object, Object)

    You are configuring a relationship between '{dependentEntityType}' and '{principalEntityType}' but have specified a foreign key on '{entityType}'. The foreign key must be defined on a type that is part of the relationship.

    public static string DependentEntityTypeNotInRelationship(object dependentEntityType, object principalEntityType, object entityType)Public Shared Function DependentEntityTypeNotInRelationship(dependentEntityType As Object, principalEntityType As Object, entityType As Object) As String

    Parameters

    • dependentEntityType
      System.Object
      System.Object
    • principalEntityType
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DerivedEntityCannotHaveKeys(Object)
    DerivedEntityCannotHaveKeys(Object)

    Unable to set a base type for entity type '{entityType}' because it has one or more keys defined.

    public static string DerivedEntityCannotHaveKeys(object entityType)Public Shared Function DerivedEntityCannotHaveKeys(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DerivedEntityTypeKey(Object, Object)
    DerivedEntityTypeKey(Object, Object)

    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 included in a DbSet property on your context, referenced in a configuration call to ModelBuilder, or referenced from a navigation property on a type that is included in the model.

    public static string DerivedEntityTypeKey(object derivedType, object rootType)Public Shared Function DerivedEntityTypeKey(derivedType As Object, rootType As Object) As String

    Parameters

    • derivedType
      System.Object
      System.Object
    • rootType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateAnnotation(Object)
    DuplicateAnnotation(Object)

    The annotation '{annotation}' cannot be added because an annotation with the same name already exists.

    public static string DuplicateAnnotation(object annotation)Public Shared Function DuplicateAnnotation(annotation As Object) As String

    Parameters

    • annotation
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateEntityType(Object)
    DuplicateEntityType(Object)

    The entity type '{entityType}' cannot be added to the model because an entity with the same name already exists.

    public static string DuplicateEntityType(object entityType)Public Shared Function DuplicateEntityType(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateForeignKey(Object, Object, Object, Object, Object)
    DuplicateForeignKey(Object, Object, Object, Object, Object)

    The foreign key {foreignKey} cannot be added to the entity type '{entityType}' because a foreign key on the same properties already exists on entity type '{duplicateEntityType}' and also targets the key {key} on '{principalType}'.

    public static string DuplicateForeignKey(object foreignKey, object entityType, object duplicateEntityType, object key, object principalType)Public Shared Function DuplicateForeignKey(foreignKey As Object, entityType As Object, duplicateEntityType As Object, key As Object, principalType As Object) As String

    Parameters

    • foreignKey
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • duplicateEntityType
      System.Object
      System.Object
    • key
      System.Object
      System.Object
    • principalType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateIndex(Object, Object, Object)
    DuplicateIndex(Object, Object, Object)

    The index {index} cannot be added to the entity type '{entityType}' because an index on the same properties already exists on entity type '{duplicateEntityType}'.

    public static string DuplicateIndex(object index, object entityType, object duplicateEntityType)Public Shared Function DuplicateIndex(index As Object, entityType As Object, duplicateEntityType As Object) As String

    Parameters

    • index
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • duplicateEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateKey(Object, Object, Object)
    DuplicateKey(Object, Object, Object)

    The key {key} cannot be added to the entity type '{entityType}' because a key on the same properties already exists on entity type '{duplicateEntityType}'.

    public static string DuplicateKey(object key, object entityType, object duplicateEntityType)Public Shared Function DuplicateKey(key As Object, entityType As Object, duplicateEntityType As Object) As String

    Parameters

    • key
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • duplicateEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateNavigation(Object, Object, Object)
    DuplicateNavigation(Object, Object, Object)

    The navigation property '{navigation}' cannot be added to the entity type '{entityType}' because a navigation property with the same name already exists on entity type '{duplicateEntityType}'.

    public static string DuplicateNavigation(object navigation, object entityType, object duplicateEntityType)Public Shared Function DuplicateNavigation(navigation As Object, entityType As Object, duplicateEntityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • duplicateEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateNavigationsOnBase(Object, Object, Object)
    DuplicateNavigationsOnBase(Object, Object, Object)

    The type '{entityType}' cannot have base type '{baseType}' because both types include the navigations: {navigations}.

    public static string DuplicateNavigationsOnBase(object entityType, object baseType, object navigations)Public Shared Function DuplicateNavigationsOnBase(entityType As Object, baseType As Object, navigations As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • baseType
      System.Object
      System.Object
    • navigations
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicatePropertiesOnBase(Object, Object, Object)
    DuplicatePropertiesOnBase(Object, Object, Object)

    The type '{entityType}' cannot have base type '{baseType}' because both types include the properties: {properties}.

    public static string DuplicatePropertiesOnBase(object entityType, object baseType, object properties)Public Shared Function DuplicatePropertiesOnBase(entityType As Object, baseType As Object, properties As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • baseType
      System.Object
      System.Object
    • properties
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • DuplicateProperty(Object, Object, Object)
    DuplicateProperty(Object, Object, Object)

    The property '{property}' cannot be added to the entity type '{entityType}' because a property with the same name already exists on entity type '{duplicateEntityType}'.

    public static string DuplicateProperty(object property, object entityType, object duplicateEntityType)Public Shared Function DuplicateProperty(property As Object, entityType As Object, duplicateEntityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • duplicateEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • EntityRequiresKey(Object)
    EntityRequiresKey(Object)

    The entity type '{entityType}' requires a primary key to be defined.

    public static string EntityRequiresKey(object entityType)Public Shared Function EntityRequiresKey(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • EntityTypeInUseByDerived(Object, Object)
    EntityTypeInUseByDerived(Object, Object)

    The entity type '{entityType}' cannot be removed because '{derivedEntityType}' is derived from it. All derived entity types must be removed or redefined before the entity type can be removed.

    public static string EntityTypeInUseByDerived(object entityType, object derivedEntityType)Public Shared Function EntityTypeInUseByDerived(entityType As Object, derivedEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • derivedEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • EntityTypeInUseByForeignKey(Object, Object, Object)
    EntityTypeInUseByForeignKey(Object, Object, Object)

    The entity type '{entityType}' cannot be removed because it is being referenced by foreign key {foreignKey} on '{referencingEntityType}'. All referencing foreign keys must be removed or redefined before the entity type can be removed.

    public static string EntityTypeInUseByForeignKey(object entityType, object foreignKey, object referencingEntityType)Public Shared Function EntityTypeInUseByForeignKey(entityType As Object, foreignKey As Object, referencingEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • foreignKey
      System.Object
      System.Object
    • referencingEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • EntityTypeModelMismatch(Object, Object)
    EntityTypeModelMismatch(Object, Object)

    The entity types '{firstEntityType}' and '{secondEntityType}' do not belong to the same model.

    public static string EntityTypeModelMismatch(object firstEntityType, object secondEntityType)Public Shared Function EntityTypeModelMismatch(firstEntityType As Object, secondEntityType As Object) As String

    Parameters

    • firstEntityType
      System.Object
      System.Object
    • secondEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • EntityTypeNotFound(Object)
    EntityTypeNotFound(Object)

    The entity type '{entityType}' was not found. Ensure that the entity type has been added to the model.

    public static string EntityTypeNotFound(object entityType)Public Shared Function EntityTypeNotFound(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • EntityTypeNotInRelationship(Object, Object, Object)
    EntityTypeNotInRelationship(Object, Object, Object)

    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.

    public static string EntityTypeNotInRelationship(object entityType, object dependentType, object principalType)Public Shared Function EntityTypeNotInRelationship(entityType As Object, dependentType As Object, principalType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • dependentType
      System.Object
      System.Object
    • principalType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • EntityTypeNotInRelationshipStrict(Object, Object, Object)
    EntityTypeNotInRelationshipStrict(Object, Object, Object)

    The specified entity type '{entityType}' is invalid. It should be either the dependent entity type '{dependentType}' or the principal entity type '{principalType}'.

    public static string EntityTypeNotInRelationshipStrict(object entityType, object dependentType, object principalType)Public Shared Function EntityTypeNotInRelationshipStrict(entityType As Object, dependentType As Object, principalType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • dependentType
      System.Object
      System.Object
    • principalType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • EntityTypesNotInRelationship(Object, Object, Object, Object)
    EntityTypesNotInRelationship(Object, Object, Object, Object)

    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(object invalidDependentType, object invalidPrincipalType, object dependentType, object principalType)Public Shared Function EntityTypesNotInRelationship(invalidDependentType As Object, invalidPrincipalType As Object, dependentType As Object, principalType As Object) As String

    Parameters

    • invalidDependentType
      System.Object
      System.Object
    • invalidPrincipalType
      System.Object
      System.Object
    • dependentType
      System.Object
      System.Object
    • principalType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ErrorMaterializingProperty(Object, Object)
    ErrorMaterializingProperty(Object, Object)

    An exception occured while reading a database value for property '{entityType}.{property}'. See the inner exception for more information.

    public static string ErrorMaterializingProperty(object entityType, object property)Public Shared Function ErrorMaterializingProperty(entityType As Object, property As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • property
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ErrorMaterializingPropertyInvalidCast(Object, Object, Object, Object)
    ErrorMaterializingPropertyInvalidCast(Object, Object, Object, Object)

    An exception occured while reading a database value for property '{entityType}.{property}'. The expected type was '{expectedType}' but the actual value was of type '{actualType}'.

    public static string ErrorMaterializingPropertyInvalidCast(object entityType, object property, object expectedType, object actualType)Public Shared Function ErrorMaterializingPropertyInvalidCast(entityType As Object, property As Object, expectedType As Object, actualType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • expectedType
      System.Object
      System.Object
    • actualType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ErrorMaterializingPropertyNullReference(Object, Object, Object)
    ErrorMaterializingPropertyNullReference(Object, Object, Object)

    An exception occured while reading a database value for property '{entityType}.{property}'. The expected type was '{expectedType}' but the actual value was null.

    public static string ErrorMaterializingPropertyNullReference(object entityType, object property, object expectedType)Public Shared Function ErrorMaterializingPropertyNullReference(entityType As Object, property As Object, expectedType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • expectedType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ErrorMaterializingValueInvalidCast(Object, Object)
    ErrorMaterializingValueInvalidCast(Object, Object)

    An exception occured while reading a database value. The expected type was '{expectedType}' but the actual value was of type '{actualType}'.

    public static string ErrorMaterializingValueInvalidCast(object expectedType, object actualType)Public Shared Function ErrorMaterializingValueInvalidCast(expectedType As Object, actualType As Object) As String

    Parameters

    • expectedType
      System.Object
      System.Object
    • actualType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ErrorMaterializingValueNullReference(Object)
    ErrorMaterializingValueNullReference(Object)

    An exception occured while reading a database value. The expected type was '{expectedType}' but the actual value was null.

    public static string ErrorMaterializingValueNullReference(object expectedType)Public Shared Function ErrorMaterializingValueNullReference(expectedType As Object) As String

    Parameters

    • expectedType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ExecutionStrategyExistingTransaction(Object, Object)
    ExecutionStrategyExistingTransaction(Object, Object)

    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(object strategy, object getExecutionStrategyMethod)Public Shared Function ExecutionStrategyExistingTransaction(strategy As Object, getExecutionStrategyMethod As Object) As String

    Parameters

    • strategy
      System.Object
      System.Object
    • getExecutionStrategyMethod
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ExpressionParameterizationExceptionSensitive(Object)
    ExpressionParameterizationExceptionSensitive(Object)

    An exception was thrown while attempting to evaluate the LINQ query parameter expression '{expression}'.

    public static string ExpressionParameterizationExceptionSensitive(object expression)Public Shared Function ExpressionParameterizationExceptionSensitive(expression As Object) As String

    Parameters

    • expression
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • FindNotCompositeKey(Object, Object)
    FindNotCompositeKey(Object, Object)

    Entity type '{entityType}' is defined with a single key property, but {valuesCount} values were passed to the 'DbSet.Find' method.

    public static string FindNotCompositeKey(object entityType, object valuesCount)Public Shared Function FindNotCompositeKey(entityType As Object, valuesCount As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • valuesCount
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • FindValueCountMismatch(Object, Object, Object)
    FindValueCountMismatch(Object, Object, Object)

    Entity type '{entityType}' is defined with a {propertiesCount}-part composite key, but {valuesCount} values were passed to the 'DbSet.Find' method.

    public static string FindValueCountMismatch(object entityType, object propertiesCount, object valuesCount)Public Shared Function FindValueCountMismatch(entityType As Object, propertiesCount As Object, valuesCount As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • propertiesCount
      System.Object
      System.Object
    • valuesCount
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • FindValueTypeMismatch(Object, Object, Object, Object)
    FindValueTypeMismatch(Object, Object, Object, Object)

    The key value at position {index} of the call to 'DbSet<{entityType}>.Find' was of type '{valueType}', which does not match the property type of '{propertyType}'.

    public static string FindValueTypeMismatch(object index, object entityType, object valueType, object propertyType)Public Shared Function FindValueTypeMismatch(index As Object, entityType As Object, valueType As Object, propertyType As Object) As String

    Parameters

    • index
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • valueType
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • FkAttributeOnPropertyNavigationMismatch(Object, Object, Object)
    FkAttributeOnPropertyNavigationMismatch(Object, Object, Object)

    The ForeignKeyAttributes on property '{property}' and navigation '{navigation}' in entity type '{entityType}' do not point at each other. The value of ForeignKeyAttribute on property should be navigation name and the value of ForeignKeyAttribute on navigation should be the foreign key property name.

    public static string FkAttributeOnPropertyNavigationMismatch(object property, object navigation, object entityType)Public Shared Function FkAttributeOnPropertyNavigationMismatch(property As Object, navigation As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ForeignKeyCannotBeOptional(Object, Object)
    ForeignKeyCannotBeOptional(Object, Object)

    The foreign key {foreignKey} on entity type '{entityType}' cannot be marked as optional because it does not contain any property of a nullable type. Any foreign key can be marked as required, but only foreign keys with at least one property of a nullable type and which is not part of primary key can be marked as optional.

    public static string ForeignKeyCannotBeOptional(object foreignKey, object entityType)Public Shared Function ForeignKeyCannotBeOptional(foreignKey As Object, entityType As Object) As String

    Parameters

    • foreignKey
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ForeignKeyCountMismatch(Object, Object, Object, Object)
    ForeignKeyCountMismatch(Object, Object, Object, Object)

    The number of properties specified for the foreign key {foreignKey} on entity type '{dependentType}' does not match the number of properties in the principal key {principalKey} on entity type '{principalType}'.

    public static string ForeignKeyCountMismatch(object foreignKey, object dependentType, object principalKey, object principalType)Public Shared Function ForeignKeyCountMismatch(foreignKey As Object, dependentType As Object, principalKey As Object, principalType As Object) As String

    Parameters

    • foreignKey
      System.Object
      System.Object
    • dependentType
      System.Object
      System.Object
    • principalKey
      System.Object
      System.Object
    • principalType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ForeignKeyPropertiesWrongEntity(Object, Object)
    ForeignKeyPropertiesWrongEntity(Object, Object)

    The specified foreign key properties {foreignKey} are not declared on the entity type '{entityType}'. Ensure foreign key properties are declared on the target entity type.

    public static string ForeignKeyPropertiesWrongEntity(object foreignKey, object entityType)Public Shared Function ForeignKeyPropertiesWrongEntity(foreignKey As Object, entityType As Object) As String

    Parameters

    • foreignKey
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ForeignKeyPropertyInKey(Object, Object)
    ForeignKeyPropertyInKey(Object, Object)

    The property '{property}' cannot be part of a foreign key on '{entityType}' because it is contained in a key defined on a base entity type.

    public static string ForeignKeyPropertyInKey(object property, object entityType)Public Shared Function ForeignKeyPropertyInKey(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ForeignKeyReferencedEntityKeyMismatch(Object, Object)
    ForeignKeyReferencedEntityKeyMismatch(Object, Object)

    The provided principal entity key '{principalKey}' is not a key on the entity type '{principalEntityType}'.

    public static string ForeignKeyReferencedEntityKeyMismatch(object principalKey, object principalEntityType)Public Shared Function ForeignKeyReferencedEntityKeyMismatch(principalKey As Object, principalEntityType As Object) As String

    Parameters

    • principalKey
      System.Object
      System.Object
    • principalEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ForeignKeyTypeMismatch(Object, Object, Object, Object)
    ForeignKeyTypeMismatch(Object, Object, Object, Object)

    The types of the properties specified for the foreign key {foreignKey} on entity type '{dependentType}' do not match the types of the properties in the principal key {principalKey} on entity type '{principalType}'.

    public static string ForeignKeyTypeMismatch(object foreignKey, object dependentType, object principalKey, object principalType)Public Shared Function ForeignKeyTypeMismatch(foreignKey As Object, dependentType As Object, principalKey As Object, principalType As Object) As String

    Parameters

    • foreignKey
      System.Object
      System.Object
    • dependentType
      System.Object
      System.Object
    • principalKey
      System.Object
      System.Object
    • principalType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • GraphDoesNotContainVertex(Object)
    GraphDoesNotContainVertex(Object)

    The edge cannot be added because the graph does not contain vertex '{vertex}'.

    public static string GraphDoesNotContainVertex(object vertex)Public Shared Function GraphDoesNotContainVertex(vertex As Object) As String

    Parameters

    • vertex
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • IdentityConflict(Object)
    IdentityConflict(Object)

    The instance of entity type '{entityType}' cannot be tracked because another instance of this type with the same key is already being tracked. When adding new entities, for most key types a unique temporary key value will be created if no key is set (i.e. if the key property is assigned the default value for its type). If you are explicitly setting key values for new entities, ensure they do not collide with existing entities or temporary values generated for other new entities. When attaching existing entities, ensure that only one entity instance with a given key value is attached to the context.

    public static string IdentityConflict(object entityType)Public Shared Function IdentityConflict(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • IncludeBadNavigation(Object, Object)
    IncludeBadNavigation(Object, Object)

    The property '{property}' is not a navigation property of entity type '{entityType}'. The 'Include(string)' method can only be used with a '.' separated list of navigation property names.

    public static string IncludeBadNavigation(object property, object entityType)Public Shared Function IncludeBadNavigation(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • IncludeNonBindableExpression(Object)
    IncludeNonBindableExpression(Object)

    The expression '{expression}' passed to the Include operator could not be bound.

    public static string IncludeNonBindableExpression(object expression)Public Shared Function IncludeNonBindableExpression(expression As Object) As String

    Parameters

    • expression
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InconsistentInheritance(Object, Object)
    InconsistentInheritance(Object, Object)

    The entity type '{entityType}' should derive from '{baseEntityType}' to reflect the hierarchy of the corresponding CLR types.

    public static string InconsistentInheritance(object entityType, object baseEntityType)Public Shared Function InconsistentInheritance(entityType As Object, baseEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • baseEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • IndexPropertiesWrongEntity(Object, Object)
    IndexPropertiesWrongEntity(Object, Object)

    The specified index properties {index} are not declared on the entity type '{entityType}'. Ensure index properties are declared on the target entity type.

    public static string IndexPropertiesWrongEntity(object index, object entityType)Public Shared Function IndexPropertiesWrongEntity(index As Object, entityType As Object) As String

    Parameters

    • index
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InheritedPropertyCannotBeIgnored(Object, Object, Object)
    InheritedPropertyCannotBeIgnored(Object, Object, Object)

    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 NotMappedAttribute or Ignore method on the base type.

    public static string InheritedPropertyCannotBeIgnored(object property, object entityType, object baseEntityType)Public Shared Function InheritedPropertyCannotBeIgnored(property As Object, entityType As Object, baseEntityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • baseEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InterfacePropertyNotAdded(Object, Object, Object)
    InterfacePropertyNotAdded(Object, Object, Object)

    The property '{entityType}.{navigation}' is of an interface type ('{propertyType}'). If it is a navigation property manually configure the relationship for this property by casting it to a mapped entity type, otherwise ignore the property from the model.

    public static string InterfacePropertyNotAdded(object entityType, object navigation, object propertyType)Public Shared Function InterfacePropertyNotAdded(entityType As Object, navigation As Object, propertyType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • navigation
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • IntraHierarchicalAmbiguousTargetEntityType(Object, Object, Object, Object)
    IntraHierarchicalAmbiguousTargetEntityType(Object, Object, Object, Object)

    The entity type related to '{entityType}' cannot be determined because the specified foreign key {foreignKey} references entity type '{principalEntityType}' that it is in the same hierarchy as the entity type that it is declared on '{dependentEntityType}'.

    public static string IntraHierarchicalAmbiguousTargetEntityType(object entityType, object foreignKey, object principalEntityType, object dependentEntityType)Public Shared Function IntraHierarchicalAmbiguousTargetEntityType(entityType As Object, foreignKey As Object, principalEntityType As Object, dependentEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • foreignKey
      System.Object
      System.Object
    • principalEntityType
      System.Object
      System.Object
    • dependentEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidComplexPropertyExpression(Object)
    InvalidComplexPropertyExpression(Object)

    The property expression '{propertyAccessExpression}' is not valid. The expression should represent a property access: 't => t.MyProperty'. For more information on including related data, see http://go.microsoft.com/fwlink/?LinkID=746393.

    public static string InvalidComplexPropertyExpression(object propertyAccessExpression)Public Shared Function InvalidComplexPropertyExpression(propertyAccessExpression As Object) As String

    Parameters

    • propertyAccessExpression
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidEntityType(Object, Object)
    InvalidEntityType(Object, Object)

    The entity type '{type}' provided for the argument '{argumentName}' must be a reference type.

    public static string InvalidEntityType(object type, object argumentName)Public Shared Function InvalidEntityType(type As Object, argumentName As Object) As String

    Parameters

    • type
      System.Object
      System.Object
    • argumentName
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidEnumValue(Object, Object)
    InvalidEnumValue(Object, Object)

    The value provided for argument '{argumentName}' must be a valid value of enum type '{enumType}'.

    public static string InvalidEnumValue(object argumentName, object enumType)Public Shared Function InvalidEnumValue(argumentName As Object, enumType As Object) As String

    Parameters

    • argumentName
      System.Object
      System.Object
    • enumType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidKeyValue(Object)
    InvalidKeyValue(Object)

    Unable to create or track an entity of type '{entityType}' because it has a null primary or alternate key value.

    public static string InvalidKeyValue(object entityType)Public Shared Function InvalidKeyValue(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidNavigationWithInverseProperty(Object, Object, Object, Object)
    InvalidNavigationWithInverseProperty(Object, Object, Object, Object)

    The InversePropertyAttribute on property '{property}' on type '{entityType}' is not valid. The property '{referencedProperty}' is not a valid navigation property on the related type '{referencedEntityType}'. Ensure that the property exists and is a valid reference or collection navigation property.

    public static string InvalidNavigationWithInverseProperty(object property, object entityType, object referencedProperty, object referencedEntityType)Public Shared Function InvalidNavigationWithInverseProperty(property As Object, entityType As Object, referencedProperty As Object, referencedEntityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • referencedProperty
      System.Object
      System.Object
    • referencedEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidPropertiesExpression(Object)
    InvalidPropertiesExpression(Object)

    The properties expression '{expression}' is not valid. The expression should represent a property access: 't => t.MyProperty'. When specifying multiple properties use an anonymous type: 't => new {{ t.MyProperty1, t.MyProperty2 }}'.

    public static string InvalidPropertiesExpression(object expression)Public Shared Function InvalidPropertiesExpression(expression As Object) As String

    Parameters

    • expression
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidPropertyExpression(Object)
    InvalidPropertyExpression(Object)

    The expression '{expression}' is not a valid property expression. The expression should represent a property access: 't => t.MyProperty'.

    public static string InvalidPropertyExpression(object expression)Public Shared Function InvalidPropertyExpression(expression As Object) As String

    Parameters

    • expression
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidPropertyListOnNavigation(Object, Object)
    InvalidPropertyListOnNavigation(Object, Object)

    The property list specified using ForeignKeyAttribute on navigation '{navigation}' in entity type '{entityType}' is incorrect. The attribute value should be comma-separated list of property names.

    public static string InvalidPropertyListOnNavigation(object navigation, object entityType)Public Shared Function InvalidPropertyListOnNavigation(navigation As Object, entityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidRelationshipUsingDataAnnotations(Object, Object, Object, Object)
    InvalidRelationshipUsingDataAnnotations(Object, Object, Object, Object)

    Invalid relationship has been specified using InverseProperty and ForeignKey. The navigation '{navigation}' in entity type '{entityType}' and the navigation '{referencedNavigation}' in entity type '{referencedEntityType}' are related by InversePropertyAttribute but the ForeignKeyAttribute specified for both navigations have different values.

    public static string InvalidRelationshipUsingDataAnnotations(object navigation, object entityType, object referencedNavigation, object referencedEntityType)Public Shared Function InvalidRelationshipUsingDataAnnotations(navigation As Object, entityType As Object, referencedNavigation As Object, referencedEntityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • referencedNavigation
      System.Object
      System.Object
    • referencedEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidReplaceService(Object, Object)
    InvalidReplaceService(Object, Object)

    A call was made to {replaceService}, but Entity Framework is not building its own internal service provider. Either allow EF to build the service provider by removing the call to {useInternalServiceProvider}, or build replacement services into the service provider before passing it to {useInternalServiceProvider}.

    public static string InvalidReplaceService(object replaceService, object useInternalServiceProvider)Public Shared Function InvalidReplaceService(replaceService As Object, useInternalServiceProvider As Object) As String

    Parameters

    • replaceService
      System.Object
      System.Object
    • useInternalServiceProvider
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidSetType(Object)
    InvalidSetType(Object)

    Cannot create a DbSet for '{typeName}' because this type is not included in the model for the context.

    public static string InvalidSetType(object typeName)Public Shared Function InvalidSetType(typeName As Object) As String

    Parameters

    • typeName
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidType(Object, Object, Object, Object)
    InvalidType(Object, Object, Object, Object)

    The value for property '{property}' of entity type '{entityType}' cannot be set to a value of type '{valueType}' because its type is '{propertyType}'.

    public static string InvalidType(object property, object entityType, object valueType, object propertyType)Public Shared Function InvalidType(property As Object, entityType As Object, valueType As Object, propertyType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • valueType
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InvalidValueGeneratorFactoryProperty(Object, Object, Object)
    InvalidValueGeneratorFactoryProperty(Object, Object, Object)

    The '{factory}' cannot create a value generator for property '{property}' on entity type '{entityType}'. Only integer properties are supported.

    public static string InvalidValueGeneratorFactoryProperty(object factory, object property, object entityType)Public Shared Function InvalidValueGeneratorFactoryProperty(factory As Object, property As Object, entityType As Object) As String

    Parameters

    • factory
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • InversePropertyMismatch(Object, Object, Object, Object)
    InversePropertyMismatch(Object, Object, Object, Object)

    InversePropertyAttributes on navigation '{navigation}' in entity type '{entityType}' and on navigation '{referencedNavigation}' in entity type '{referencedEntityType}' are not pointing to each other.

    public static string InversePropertyMismatch(object navigation, object entityType, object referencedNavigation, object referencedEntityType)Public Shared Function InversePropertyMismatch(navigation As Object, entityType As Object, referencedNavigation As Object, referencedEntityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • referencedNavigation
      System.Object
      System.Object
    • referencedEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • IQueryableNotAsync(Object)
    IQueryableNotAsync(Object)

    The source IQueryable doesn't implement IAsyncEnumerable<{genericParameter}>. Only sources that implement IAsyncEnumerable can be used for Entity Framework asynchronous operations.

    public static string IQueryableNotAsync(object genericParameter)Public Shared Function IQueryableNotAsync(genericParameter As Object) As String

    Parameters

    • genericParameter
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • KeyAttributeOnDerivedEntity(Object, Object)
    KeyAttributeOnDerivedEntity(Object, Object)

    The derived type '{derivedType}' cannot have KeyAttribute on property '{property}' since primary key can only be declared on the root type.

    public static string KeyAttributeOnDerivedEntity(object derivedType, object property)Public Shared Function KeyAttributeOnDerivedEntity(derivedType As Object, property As Object) As String

    Parameters

    • derivedType
      System.Object
      System.Object
    • property
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • KeyInUse(Object, Object, Object)
    KeyInUse(Object, Object, Object)

    Cannot remove key {key} from entity type '{entityType}' because it is referenced by a foreign key in entity type '{dependentType}'. All foreign keys must be removed or redefined before the referenced key can be removed.

    public static string KeyInUse(object key, object entityType, object dependentType)Public Shared Function KeyInUse(key As Object, entityType As Object, dependentType As Object) As String

    Parameters

    • key
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • dependentType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • KeyPropertiesWrongEntity(Object, Object)
    KeyPropertiesWrongEntity(Object, Object)

    The specified key properties {key} are not declared on the entity type '{entityType}'. Ensure key properties are declared on the target entity type.

    public static string KeyPropertiesWrongEntity(object key, object entityType)Public Shared Function KeyPropertiesWrongEntity(key As Object, entityType As Object) As String

    Parameters

    • key
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • KeyPropertyInForeignKey(Object, Object)
    KeyPropertyInForeignKey(Object, Object)

    The property '{property}' cannot be part of a key on '{entityType}' because it is contained in a foreign key defined on a derived entity type.

    public static string KeyPropertyInForeignKey(object property, object entityType)Public Shared Function KeyPropertyInForeignKey(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • KeyPropertyMustBeReadOnly(Object, Object)
    KeyPropertyMustBeReadOnly(Object, Object)

    The property '{property}' on entity type '{entityType}' 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.

    public static string KeyPropertyMustBeReadOnly(object property, object entityType)Public Shared Function KeyPropertyMustBeReadOnly(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • KeyReadOnly(Object, Object)
    KeyReadOnly(Object, Object)

    The property '{property}' on entity type '{entityType}' is part of a key and so cannot be modified or marked as modified.

    public static string KeyReadOnly(object property, object entityType)Public Shared Function KeyReadOnly(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • LogCompilingQueryModel(Object, Object)
    LogCompilingQueryModel(Object, Object)

    Compiling query model: {newline}'{queryModel}'

    public static string LogCompilingQueryModel(object newline, object queryModel)Public Shared Function LogCompilingQueryModel(newline As Object, queryModel As Object) As String

    Parameters

    • newline
      System.Object
      System.Object
    • queryModel
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • LogExceptionDuringQueryIteration(Object, Object)
    LogExceptionDuringQueryIteration(Object, Object)

    An exception occurred in the database while iterating the results of a query.{newline}{error}

    public static string LogExceptionDuringQueryIteration(object newline, object error)Public Shared Function LogExceptionDuringQueryIteration(newline As Object, error As Object) As String

    Parameters

    • newline
      System.Object
      System.Object
    • error
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • LogExceptionDuringSaveChanges(Object, Object)
    LogExceptionDuringSaveChanges(Object, Object)

    An exception occurred in the database while saving changes.{newline}{error}

    public static string LogExceptionDuringSaveChanges(object newline, object error)Public Shared Function LogExceptionDuringSaveChanges(newline As Object, error As Object) As String

    Parameters

    • newline
      System.Object
      System.Object
    • error
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • LogIgnoredInclude(Object)
    LogIgnoredInclude(Object)

    The Include operation for navigation: '{navigation}' was ignored because the target navigation is not reachable in the final query results.

    public static string LogIgnoredInclude(object navigation)Public Shared Function LogIgnoredInclude(navigation As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • LogIncludingNavigation(Object)
    LogIncludingNavigation(Object)

    Including navigation: '{navigation}'

    public static string LogIncludingNavigation(object navigation)Public Shared Function LogIncludingNavigation(navigation As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • LogOptimizedQueryModel(Object, Object)
    LogOptimizedQueryModel(Object, Object)

    Optimized query model: {newline}'{queryModel}'

    public static string LogOptimizedQueryModel(object newline, object queryModel)Public Shared Function LogOptimizedQueryModel(newline As Object, queryModel As Object) As String

    Parameters

    • newline
      System.Object
      System.Object
    • queryModel
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • MissingBackingField(Object, Object, Object)
    MissingBackingField(Object, Object, Object)

    The specified field '{field}' could not be found for property '{property}' on entity type '{entityType}'.

    public static string MissingBackingField(object field, object property, object entityType)Public Shared Function MissingBackingField(field As Object, property As Object, entityType As Object) As String

    Parameters

    • field
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • MultipleEntries(Object)
    MultipleEntries(Object)

    Cannot start tracking InternalEntityEntry for entity type '{entityType}' because another InternalEntityEntry is already tracking the same entity.

    public static string MultipleEntries(object entityType)Public Shared Function MultipleEntries(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • MultipleNavigationsSameFk(Object, Object)
    MultipleNavigationsSameFk(Object, Object)

    There are multiple navigations in entity type '{entityType}' which are pointing to same set of properties - '{propertyList}' using ForeignKeyAttribute.

    public static string MultipleNavigationsSameFk(object entityType, object propertyList)Public Shared Function MultipleNavigationsSameFk(entityType As Object, propertyList As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • propertyList
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • MultipleProvidersAvailable(Object)
    MultipleProvidersAvailable(Object)

    The database providers {storeNames}are available. A context can only be configured to use a single database provider. Configure a database provider by overriding OnConfiguring in your DbContext class or in the AddDbContext method when setting up services.

    public static string MultipleProvidersAvailable(object storeNames)Public Shared Function MultipleProvidersAvailable(storeNames As Object) As String

    Parameters

    • storeNames
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • MultipleProvidersConfigured(Object)
    MultipleProvidersConfigured(Object)

    The database providers {storeNames}are configured. A context can only be configured to use a single database provider.

    public static string MultipleProvidersConfigured(object storeNames)Public Shared Function MultipleProvidersConfigured(storeNames As Object) As String

    Parameters

    • storeNames
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationArray(Object, Object, Object)
    NavigationArray(Object, Object, Object)

    The type of navigation property '{navigation}' on the entity type '{entityType}' is '{foundType}' which is an array type.. Collection navigation properties cannot be arrays.

    public static string NavigationArray(object navigation, object entityType, object foundType)Public Shared Function NavigationArray(navigation As Object, entityType As Object, foundType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • foundType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationBadType(Object, Object, Object, Object)
    NavigationBadType(Object, Object, Object, Object)

    The type of navigation property '{navigation}' on the entity type '{entityType}' is '{foundType}' which does not implement ICollection<{targetType}>. Collection navigation properties must implement ICollection<> of the target type.

    public static string NavigationBadType(object navigation, object entityType, object foundType, object targetType)Public Shared Function NavigationBadType(navigation As Object, entityType As Object, foundType As Object, targetType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • foundType
      System.Object
      System.Object
    • targetType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationCannotCreateType(Object, Object, Object)
    NavigationCannotCreateType(Object, Object, Object)

    The type of navigation property '{navigation}' on the entity type '{entityType}' is '{foundType}' for which it was not possible to create a concrete instance. Either initialize the property before use, add a public parameterless constructor to the type, or use a type which can be assigned a HashSet<> or List<>.

    public static string NavigationCannotCreateType(object navigation, object entityType, object foundType)Public Shared Function NavigationCannotCreateType(navigation As Object, entityType As Object, foundType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • foundType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationCollectionWrongClrType(Object, Object, Object, Object)
    NavigationCollectionWrongClrType(Object, Object, Object, Object)

    The collection navigation property '{navigation}' cannot be added to the entity type '{entityType}' because its CLR type '{clrType}' does not implement 'IEnumerable<{targetType}>'. Collection navigation properties must implement IEnumerable<> of the related entity.

    public static string NavigationCollectionWrongClrType(object navigation, object entityType, object clrType, object targetType)Public Shared Function NavigationCollectionWrongClrType(navigation As Object, entityType As Object, clrType As Object, targetType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • clrType
      System.Object
      System.Object
    • targetType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationForWrongForeignKey(Object, Object, Object, Object)
    NavigationForWrongForeignKey(Object, Object, Object, Object)

    The navigation property '{navigation}' on entity type '{entityType}' cannot be associated with foreign key {targetFk} because it was created for foreign key {actualFk}.

    public static string NavigationForWrongForeignKey(object navigation, object entityType, object targetFk, object actualFk)Public Shared Function NavigationForWrongForeignKey(navigation As Object, entityType As Object, targetFk As Object, actualFk As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • targetFk
      System.Object
      System.Object
    • actualFk
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationIsProperty(Object, Object, Object, Object, Object)
    NavigationIsProperty(Object, Object, Object, Object, Object)

    The property '{property}' on entity type '{entityType}' is being accessed using the '{ReferenceMethod}' or '{CollectionMethod}' method, but is defined in the model as a non-navigation property. Use the '{PropertyMethod}' method to access non-navigation properties.

    public static string NavigationIsProperty(object property, object entityType, object ReferenceMethod, object CollectionMethod, object PropertyMethod)Public Shared Function NavigationIsProperty(property As Object, entityType As Object, ReferenceMethod As Object, CollectionMethod As Object, PropertyMethod As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • ReferenceMethod
      System.Object
      System.Object
    • CollectionMethod
      System.Object
      System.Object
    • PropertyMethod
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationNoSetter(Object, Object)
    NavigationNoSetter(Object, Object)

    The navigation property '{navigation}' on the entity type '{entityType}' does not have a setter and no writable backing field was found or specified. Read-only collection navigation properties must be initialized before use.

    public static string NavigationNoSetter(object navigation, object entityType)Public Shared Function NavigationNoSetter(navigation As Object, entityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationNotAdded(Object, Object, Object)
    NavigationNotAdded(Object, Object, Object)

    Unable to determine the relationship represented by navigation property '{entityType}.{navigation}' of type '{propertyType}'. Either manually configure the relationship, or ignore this property from the model.

    public static string NavigationNotAdded(object entityType, object navigation, object propertyType)Public Shared Function NavigationNotAdded(entityType As Object, navigation As Object, propertyType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • navigation
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationSingleWrongClrType(Object, Object, Object, Object)
    NavigationSingleWrongClrType(Object, Object, Object, Object)

    The navigation property '{navigation}' cannot be added to the entity type '{entityType}' because its CLR type '{clrType}' does not match the expected CLR type '{targetType}'.

    public static string NavigationSingleWrongClrType(object navigation, object entityType, object clrType, object targetType)Public Shared Function NavigationSingleWrongClrType(navigation As Object, entityType As Object, clrType As Object, targetType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • clrType
      System.Object
      System.Object
    • targetType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NavigationToShadowEntity(Object, Object, Object)
    NavigationToShadowEntity(Object, Object, Object)

    The navigation property '{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(object navigation, object entityType, object targetType)Public Shared Function NavigationToShadowEntity(navigation As Object, entityType As Object, targetType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • targetType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoBackingField(Object, Object, Object)
    NoBackingField(Object, Object, Object)

    No field was found backing property '{property}' of entity type '{entity}'. Either configure a backing field or use a different '{pam}'.

    public static string NoBackingField(object property, object entity, object pam)Public Shared Function NoBackingField(property As Object, entity As Object, pam As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entity
      System.Object
      System.Object
    • pam
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoClrNavigation(Object, Object)
    NoClrNavigation(Object, Object)

    The navigation property '{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 to shadow state.

    public static string NoClrNavigation(object navigation, object entityType)Public Shared Function NoClrNavigation(navigation As Object, entityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoClrType(Object)
    NoClrType(Object)

    The CLR entity materializer cannot be used for entity type '{entityType}' because it is a shadow state entity type. Materialization to a CLR type is only possible for entity types that have a corresponding CLR type.

    public static string NoClrType(object entityType)Public Shared Function NoClrType(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoFieldOrGetter(Object, Object)
    NoFieldOrGetter(Object, Object)

    No backing field could be found for property '{property}' of entity type '{entity}' and the property does not have a getter.

    public static string NoFieldOrGetter(object property, object entity)Public Shared Function NoFieldOrGetter(property As Object, entity As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entity
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoFieldOrSetter(Object, Object)
    NoFieldOrSetter(Object, Object)

    No backing field could be found for property '{property}' of entity type '{entity}' and the property does not have a setter.

    public static string NoFieldOrSetter(object property, object entity)Public Shared Function NoFieldOrSetter(property As Object, entity As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entity
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoGetter(Object, Object, Object)
    NoGetter(Object, Object, Object)

    The property '{property}' of entity type '{entity}' does not have a getter. Either make the property readable or use a different '{pam}'.

    public static string NoGetter(object property, object entity, object pam)Public Shared Function NoGetter(property As Object, entity As Object, pam As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entity
      System.Object
      System.Object
    • pam
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NonClrBaseType(Object, Object)
    NonClrBaseType(Object, Object)

    The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{baseEntityType}' is a shadow state entity type while '{entityType}' is not.

    public static string NonClrBaseType(object entityType, object baseEntityType)Public Shared Function NonClrBaseType(entityType As Object, baseEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • baseEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NonGenericOptions(Object)
    NonGenericOptions(Object)

    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(object contextType)Public Shared Function NonGenericOptions(contextType As Object) As String

    Parameters

    • contextType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NonNotifyingCollection(Object, Object, Object)
    NonNotifyingCollection(Object, Object, Object)

    The collection type being used for navigation property '{navigation}' on entity type '{entityType}' does not implement 'INotifyCollectionChanged'. Any entity type configured to use the '{changeTrackingStrategy}' change tracking strategy must use collections that implement 'INotifyCollectionChanged'. Consider using 'ObservableCollection<T>' for this.

    public static string NonNotifyingCollection(object navigation, object entityType, object changeTrackingStrategy)Public Shared Function NonNotifyingCollection(navigation As Object, entityType As Object, changeTrackingStrategy As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • changeTrackingStrategy
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NonShadowBaseType(Object, Object)
    NonShadowBaseType(Object, Object)

    The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{entityType}' is a shadow state entity type while '{baseEntityType}' is not.

    public static string NonShadowBaseType(object entityType, object baseEntityType)Public Shared Function NonShadowBaseType(entityType As Object, baseEntityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • baseEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoParameterlessConstructor(Object)
    NoParameterlessConstructor(Object)

    A parameterless constructor was not found on entity type '{entityType}'. In order to create an instance of '{entityType}' EF requires that a parameterless constructor be declared.

    public static string NoParameterlessConstructor(object entityType)Public Shared Function NoParameterlessConstructor(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoProperty(Object, Object, Object)
    NoProperty(Object, Object, Object)

    No property was associated with field '{field}' of entity type '{entity}'. Either configure a property or use a different '{pam}'.

    public static string NoProperty(object field, object entity, object pam)Public Shared Function NoProperty(field As Object, entity As Object, pam As Object) As String

    Parameters

    • field
      System.Object
      System.Object
    • entity
      System.Object
      System.Object
    • pam
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoPropertyType(Object, Object)
    NoPropertyType(Object, Object)

    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.

    public static string NoPropertyType(object property, object entityType)Public Shared Function NoPropertyType(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoProviderConfiguredFailedToResolveService(Object)
    NoProviderConfiguredFailedToResolveService(Object)

    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(object service)Public Shared Function NoProviderConfiguredFailedToResolveService(service As Object) As String

    Parameters

    • service
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoSetter(Object, Object, Object)
    NoSetter(Object, Object, Object)

    The property '{property}' of entity type '{entity}' does not have a setter. Either make the property writable or use a different '{pam}'.

    public static string NoSetter(object property, object entity, object pam)Public Shared Function NoSetter(property As Object, entity As Object, pam As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entity
      System.Object
      System.Object
    • pam
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NotAssignableClrBaseType(Object, Object, Object, Object)
    NotAssignableClrBaseType(Object, Object, Object, Object)

    The entity type '{entityType}' cannot inherit from '{baseEntityType}' because '{clrType}' is not a descendent of '{baseClrType}'.

    public static string NotAssignableClrBaseType(object entityType, object baseEntityType, object clrType, object baseClrType)Public Shared Function NotAssignableClrBaseType(entityType As Object, baseEntityType As Object, clrType As Object, baseClrType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • baseEntityType
      System.Object
      System.Object
    • clrType
      System.Object
      System.Object
    • baseClrType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NoValueGenerator(Object, Object, Object)
    NoValueGenerator(Object, Object, Object)

    The '{property}' on entity type '{entityType}' 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}'.

    public static string NoValueGenerator(object property, object entityType, object propertyType)Public Shared Function NoValueGenerator(property As Object, entityType As Object, propertyType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • NullableKey(Object, Object)
    NullableKey(Object, Object)

    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.

    public static string NullableKey(object entityType, object property)Public Shared Function NullableKey(entityType As Object, property As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • property
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • OptionsExtensionNotFound(Object)
    OptionsExtensionNotFound(Object)

    Options extension of type '{optionsExtension}' not found.

    public static string OptionsExtensionNotFound(object optionsExtension)Public Shared Function OptionsExtensionNotFound(optionsExtension As Object) As String

    Parameters

    • optionsExtension
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • OriginalValueNotTracked(Object, Object)
    OriginalValueNotTracked(Object, Object)

    The original value for property '{property}' of entity type '{entityType}' 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(object property, object entityType)Public Shared Function OriginalValueNotTracked(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PrincipalEntityTypeNotInRelationship(Object, Object, Object)
    PrincipalEntityTypeNotInRelationship(Object, Object, Object)

    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.

    public static string PrincipalEntityTypeNotInRelationship(object dependentEntityType, object principalEntityType, object entityType)Public Shared Function PrincipalEntityTypeNotInRelationship(dependentEntityType As Object, principalEntityType As Object, entityType As Object) As String

    Parameters

    • dependentEntityType
      System.Object
      System.Object
    • principalEntityType
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyCalledOnNavigation(Object, Object)
    PropertyCalledOnNavigation(Object, Object)

    Cannot call Property for the property '{property}' on entity type '{entityType}' because it is configured as a navigation property. Property can only be used to configure scalar properties.

    public static string PropertyCalledOnNavigation(object property, object entityType)Public Shared Function PropertyCalledOnNavigation(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyConceptualNull(Object, Object)
    PropertyConceptualNull(Object, Object)

    The property '{property}' on entity type '{entityType}' is marked as null, but this cannot be saved because the property is marked as required.

    public static string PropertyConceptualNull(object property, object entityType)Public Shared Function PropertyConceptualNull(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyDoesNotBelong(Object, Object, Object)
    PropertyDoesNotBelong(Object, Object, Object)

    The property '{property}' belongs to entity type '{entityType}' but is being used with an instance of entity type '{expectedType}'.

    public static string PropertyDoesNotBelong(object property, object entityType, object expectedType)Public Shared Function PropertyDoesNotBelong(property As Object, entityType As Object, expectedType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • expectedType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyInUse(Object, Object)
    PropertyInUse(Object, Object)

    The property '{property}' cannot be removed from entity type '{entityType}' because it is being used in an index or key. All indexes and keys must be removed or redefined before the property can be removed.

    public static string PropertyInUse(object property, object entityType)Public Shared Function PropertyInUse(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyIsNavigation(Object, Object, Object, Object, Object)
    PropertyIsNavigation(Object, Object, Object, Object, Object)

    The property '{property}' on entity type '{entityType}' is being accessed using the '{PropertyMethod}' method, but is defined in the model as a navigation property. Use either the '{ReferenceMethod}' or '{CollectionMethod}' method to access navigation properties.

    public static string PropertyIsNavigation(object property, object entityType, object PropertyMethod, object ReferenceMethod, object CollectionMethod)Public Shared Function PropertyIsNavigation(property As Object, entityType As Object, PropertyMethod As Object, ReferenceMethod As Object, CollectionMethod As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • PropertyMethod
      System.Object
      System.Object
    • ReferenceMethod
      System.Object
      System.Object
    • CollectionMethod
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyNotAdded(Object, Object, Object)
    PropertyNotAdded(Object, Object, Object)

    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.

    public static string PropertyNotAdded(object entityType, object property, object propertyType)Public Shared Function PropertyNotAdded(entityType As Object, property As Object, propertyType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyNotFound(Object, Object)
    PropertyNotFound(Object, Object)

    The property '{property}' on entity type '{entityType}' could not be found. Ensure that the property exists and has been included in the model.

    public static string PropertyNotFound(object property, object entityType)Public Shared Function PropertyNotFound(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyNotMapped(Object, Object, Object)
    PropertyNotMapped(Object, Object, Object)

    The property '{entityType}.{property}' is of type '{propertyType}' which is not supported by current database provider. Either change the property CLR type or manually configure the database type for it.

    public static string PropertyNotMapped(object entityType, object property, object propertyType)Public Shared Function PropertyNotMapped(entityType As Object, property As Object, propertyType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object
    • property
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyReadOnlyAfterSave(Object, Object)
    PropertyReadOnlyAfterSave(Object, Object)

    The property '{property}' on entity type '{entityType}' is defined to be read-only after it has been saved, but its value has been modified or marked as modified.

    public static string PropertyReadOnlyAfterSave(object property, object entityType)Public Shared Function PropertyReadOnlyAfterSave(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyReadOnlyBeforeSave(Object, Object)
    PropertyReadOnlyBeforeSave(Object, Object)

    The property '{property}' on entity type '{entityType}' 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.

    public static string PropertyReadOnlyBeforeSave(object property, object entityType)Public Shared Function PropertyReadOnlyBeforeSave(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyWrongClrType(Object, Object, Object, Object)
    PropertyWrongClrType(Object, Object, Object, Object)

    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}'.

    public static string PropertyWrongClrType(object property, object entityType, object clrType, object propertyType)Public Shared Function PropertyWrongClrType(property As Object, entityType As Object, clrType As Object, propertyType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • clrType
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • PropertyWrongEntityClrType(Object, Object, Object)
    PropertyWrongEntityClrType(Object, Object, Object)

    CLR property '{property}' cannot be added to entity type '{entityType}' because it is declared on the CLR type '{clrType}'.

    public static string PropertyWrongEntityClrType(object property, object entityType, object clrType)Public Shared Function PropertyWrongEntityClrType(property As Object, entityType As Object, clrType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • clrType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ReadonlyField(Object, Object)
    ReadonlyField(Object, Object)

    Field '{field}' of entity type '{entity}' is readonly and so cannot be set.

    public static string ReadonlyField(object field, object entity)Public Shared Function ReadonlyField(field As Object, entity As Object) As String

    Parameters

    • field
      System.Object
      System.Object
    • entity
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ReferencedShadowKey(Object, Object, Object, Object)
    ReferencedShadowKey(Object, Object, Object, Object)

    The relationship from '{referencingEntityTypeOrNavigation}' to '{referencedEntityTypeOrNavigation}' with foreign key properties {foreignKeyPropertiesWithTypes} cannot target the primary key {primaryKeyPropertiesWithTypes} because it is not compatible. Configure a principal key or a set of compatible foreign key properties for this relationship.

    public static string ReferencedShadowKey(object referencingEntityTypeOrNavigation, object referencedEntityTypeOrNavigation, object foreignKeyPropertiesWithTypes, object primaryKeyPropertiesWithTypes)Public Shared Function ReferencedShadowKey(referencingEntityTypeOrNavigation As Object, referencedEntityTypeOrNavigation As Object, foreignKeyPropertiesWithTypes As Object, primaryKeyPropertiesWithTypes As Object) As String

    Parameters

    • referencingEntityTypeOrNavigation
      System.Object
      System.Object
    • referencedEntityTypeOrNavigation
      System.Object
      System.Object
    • foreignKeyPropertiesWithTypes
      System.Object
      System.Object
    • primaryKeyPropertiesWithTypes
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ReferenceIsCollection(Object, Object, Object, Object)
    ReferenceIsCollection(Object, Object, Object, Object)

    The property '{property}' on entity type '{entityType}' is being accessed using the '{ReferenceMethod}' method, but is defined in the model as a collection navigation property. Use the '{CollectionMethod}' method to access collection navigation properties.

    public static string ReferenceIsCollection(object property, object entityType, object ReferenceMethod, object CollectionMethod)Public Shared Function ReferenceIsCollection(property As Object, entityType As Object, ReferenceMethod As Object, CollectionMethod As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • ReferenceMethod
      System.Object
      System.Object
    • CollectionMethod
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ReferenceMustBeLoaded(Object, Object)
    ReferenceMustBeLoaded(Object, Object)

    Navigation property '{navigation}' on entity type '{entityType}' cannot have 'IsLoaded' set to false because the referenced entity is non-null and therefore is loaded.

    public static string ReferenceMustBeLoaded(object navigation, object entityType)Public Shared Function ReferenceMustBeLoaded(navigation As Object, entityType As Object) As String

    Parameters

    • navigation
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • RelationshipConceptualNull(Object, Object)
    RelationshipConceptualNull(Object, Object)

    The association between entity types '{firstType}' and '{secondType}' has been severed but the foreign key for this relationship cannot be set to null. If the dependent entity should be deleted, then setup the relationship to use cascade deletes.

    public static string RelationshipConceptualNull(object firstType, object secondType)Public Shared Function RelationshipConceptualNull(firstType As Object, secondType As Object) As String

    Parameters

    • firstType
      System.Object
      System.Object
    • secondType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • RetryLimitExceeded(Object, Object)
    RetryLimitExceeded(Object, Object)

    Maximum number of retries ({retryLimit}) exceeded while executing database operations with '{strategy}'. See inner exception for the most recent failure.

    public static string RetryLimitExceeded(object retryLimit, object strategy)Public Shared Function RetryLimitExceeded(retryLimit As Object, strategy As Object) As String

    Parameters

    • retryLimit
      System.Object
      System.Object
    • strategy
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • SelfReferencingNavigationWithInverseProperty(Object, Object, Object, Object)
    SelfReferencingNavigationWithInverseProperty(Object, Object, Object, Object)

    A relationship cannot be established from property '{property}' on type '{entityType}' to property '{referencedProperty}' on type '{referencedEntityType}'. Check the values in the InversePropertyAttribute to ensure relationship definitions are unique and reference from one navigation property to its corresponding inverse navigation property.

    public static string SelfReferencingNavigationWithInverseProperty(object property, object entityType, object referencedProperty, object referencedEntityType)Public Shared Function SelfReferencingNavigationWithInverseProperty(property As Object, entityType As Object, referencedProperty As Object, referencedEntityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • referencedProperty
      System.Object
      System.Object
    • referencedEntityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ShadowEntity(Object)
    ShadowEntity(Object)

    Entity type '{entityType}' is in shadow-state. A valid model requires all entity types to have corresponding CLR type.

    public static string ShadowEntity(object entityType)Public Shared Function ShadowEntity(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ShadowKey(Object, Object, Object)
    ShadowKey(Object, Object, Object)

    The key {key} on entity type '{entityType}' contains properties in shadow state - {shadowProperties}.

    public static string ShadowKey(object key, object entityType, object shadowProperties)Public Shared Function ShadowKey(key As Object, entityType As Object, shadowProperties As Object) As String

    Parameters

    • key
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • shadowProperties
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • TempValue(Object, Object)
    TempValue(Object, Object)

    The property '{property}' on entity type '{entityType}' has a temporary value. Either set a permanent value explicitly or ensure that the database is configured to generate values for this property.

    public static string TempValue(object property, object entityType)Public Shared Function TempValue(property As Object, entityType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • TempValuePersists(Object, Object, Object)
    TempValuePersists(Object, Object, Object)

    The property '{property}' on entity type '{entityType}' 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(object property, object entityType, object state)Public Shared Function TempValuePersists(property As Object, entityType As Object, state As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • state
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • ValueCannotBeNull(Object, Object, Object)
    ValueCannotBeNull(Object, Object, Object)

    The value for property '{property}' of entity type '{entityType}' cannot be set to null because its type is '{propertyType}' which is not a nullable type.

    public static string ValueCannotBeNull(object property, object entityType, object propertyType)Public Shared Function ValueCannotBeNull(property As Object, entityType As Object, propertyType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • propertyType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • WarningAsErrorTemplate(Object, Object)
    WarningAsErrorTemplate(Object, Object)

    Warning as error exception for warning '{eventId}': {message} To suppress this Exception use the DbContextOptionsBuilder.ConfigureWarnings API. ConfigureWarnings can be used when overriding the DbContext.OnConfiguring method or using AddDbContext on the application service provider.

    public static string WarningAsErrorTemplate(object eventId, object message)Public Shared Function WarningAsErrorTemplate(eventId As Object, message As Object) As String

    Parameters

    • eventId
      System.Object
      System.Object
    • message
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • WarningLogTemplate(Object, Object)
    WarningLogTemplate(Object, Object)

    {message} To configure this warning use the DbContextOptionsBuilder.ConfigureWarnings API (event id '{eventId}'). ConfigureWarnings can be used when overriding the DbContext.OnConfiguring method or using AddDbContext on the application service provider.

    public static string WarningLogTemplate(object message, object eventId)Public Shared Function WarningLogTemplate(message As Object, eventId As Object) As String

    Parameters

    • message
      System.Object
      System.Object
    • eventId
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • WrongGenericPropertyType(Object, Object, Object, Object)
    WrongGenericPropertyType(Object, Object, Object, Object)

    Property '{property}' on entity type '{entityType}' is of type '{actualType}' but the generic type provided is of type '{genericType}'.

    public static string WrongGenericPropertyType(object property, object entityType, object actualType, object genericType)Public Shared Function WrongGenericPropertyType(property As Object, entityType As Object, actualType As Object, genericType As Object) As String

    Parameters

    • property
      System.Object
      System.Object
    • entityType
      System.Object
      System.Object
    • actualType
      System.Object
      System.Object
    • genericType
      System.Object
      System.Object

    Returns

    • System.String
      System.String
  • WrongStateManager(Object)
    WrongStateManager(Object)

    Cannot start tracking InternalEntityEntry for entity type '{entityType}' because it was created by a different StateManager instance.

    public static string WrongStateManager(object entityType)Public Shared Function WrongStateManager(entityType As Object) As String

    Parameters

    • entityType
      System.Object
      System.Object

    Returns

    • System.String
      System.String

Details

Assembly

Microsoft.EntityFrameworkCore.dll