C# Класс System.Data.Entity.Resources.Error

Показать файл Открыть проект

Приватные методы

Метод Описание
ADP_ClosedDataReaderError ( ) : Exception

InvalidOperationException with message like "The attempted operation is not valid. The data reader is closed."

ADP_DataReaderClosed ( object p0 ) : Exception

InvalidOperationException with message like "Calling '{0}' when the data reader is closed is not a valid operation."

ADP_ImplicitlyClosedDataReaderError ( ) : Exception

InvalidOperationException with message like "The attempted operation is not valid. The nested data reader has been implicitly closed because its parent data reader has been read or closed."

ADP_NoData ( ) : Exception

InvalidOperationException with message like "There was an attempt to read, but no data was present."

AmbiguousMigrationName ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "The specified migration name '{0}' is ambiguous. Specify the full migration id including timestamp instead."

ArgumentOutOfRange ( string paramName ) : Exception

The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.

AssemblyMigrator_MultipleConfigurations ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "More than one migrations configuration type was found in the assembly '{0}'. Specify the name of the one to use."

AssemblyMigrator_MultipleConfigurationsWithName ( object p0, object p1 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "More than one migrations configuration type '{0}' was found in the assembly '{1}'. Specify the fully qualified name of the one to use."

AssemblyMigrator_NoConfiguration ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "No migrations configuration type was found in the assembly '{0}'. (In Visual Studio you can use the Enable-Migrations command from Package Manager Console to add a migrations configuration)."

AssemblyMigrator_NoConfigurationWithName ( object p0, object p1 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "The migrations configuration type '{0}' was not be found in the assembly '{1}'."

AutoNotValidForScriptWindows ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "'{0}' is not a valid migration. Explicit migrations must be used for both source and target when scripting the upgrade between them."

AutoNotValidTarget ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "'{0}' is not a valid target migration. When targeting a previously applied automatic migration, use the full migration id including timestamp."

AutomaticDataLoss ( ) : Exception

Migrations.Infrastructure.AutomaticDataLossException with message like "Automatic migration was not applied because it would result in data loss. Set AutomaticMigrationDataLossAllowed to 'true' on your DbMigrationsConfiguration to allow application of automatic migrations even if they might cause data loss. Alternately, use Update-Database with the '-Force' option, or scaffold an explicit migration."

AutomaticDisabledException ( ) : Exception

Migrations.Infrastructure.AutomaticMigrationsDisabledException with message like "Unable to update database to match the current model because there are pending changes and automatic migration is disabled. Either write the pending model changes to a code-based migration or enable automatic migration. Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration."

AutomaticStaleFunctions ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "Could not apply auto-migration '{0}' because it includes modification function creation operations. When using auto-migrations, modification function creation operations are only supported when migrating to the current model."

BaseTypeNotMappedToFunctions ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The base type '{0}' must be mapped to functions because its derived type '{1}' is mapped to functions. When mapping an inheritance hierarchy to functions, ensure that the root type of the hierarchy is also mapped to functions."

CannotCallGenericSetWithProxyType ( ) : Exception

InvalidOperationException with message like "The generic 'Set' method cannot be called with a proxy type. Either use the actual entity type or call the non-generic 'Set' method."

CannotIgnoreMappedBaseProperty ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "You cannot use Ignore method on the property '{0}' on type '{1}' because this type inherits from the type '{2}' where this property is mapped. To exclude this property from your model, use NotMappedAttribute or Ignore method on the base type."

CircularComplexTypeHierarchy ( ) : Exception

InvalidOperationException with message like "A circular ComplexType hierarchy was detected. Self-referencing ComplexTypes are not supported."

CodeFirstCachedMetadataWorkspace_SameModelDifferentProvidersNotSupported ( ) : Exception

NotSupportedException with message like "Using the same DbCompiledModel to create contexts against different types of database servers is not supported. Instead, create a separate DbCompiledModel for each type of server being used."

CodeFirstInvalidComplexType ( object p0 ) : Exception

InvalidOperationException with message like "The type '{0}' was not mapped. Check that the type has not been explicitly excluded by using the Ignore method or NotMappedAttribute data annotation. Verify that the type was defined as a class, is not primitive or generic, and does not inherit from ComplexObject."

Collections_InvalidEntityStateLoad ( object p0 ) : Exception

InvalidOperationException with message like "The Load method cannot return the {0} when the related object is in a deleted state."

Collections_InvalidEntityStateSource ( ) : Exception

InvalidOperationException with message like "The source query for this EntityCollection or EntityReference cannot be returned when the related object is in either an added state or a detached state and was not originally retrieved using the NoTracking merge option."

Collections_NoRelationshipSetMatched ( object p0 ) : Exception

InvalidOperationException with message like "The relationship '{0}' does not match any relationship defined in the conceptual model."

ComplexTypeConfigurationMismatch ( object p0 ) : Exception

InvalidOperationException with message like "The type '{0}' has already been configured as an entity type. It cannot be reconfigured as a complex type."

ConflictingCascadeDeleteOperation ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting cascade delete operations using 'WillCascadeOnDelete'."

ConflictingColumnConfiguration ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "Conflicting configuration settings were specified for column '{0}' on table '{1}': {2}"

ConflictingConstraint ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting foreign keys."

ConflictingFunctionsMapping ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting modification function mapping information."

ConflictingInferredColumnType ( object p0, object p1, object p2 ) : Exception

Core.MappingException with message like "Values of incompatible types ('{1}' and '{2}') were assigned to the '{0}' discriminator column. Values of the same type must be specified. To explicitly specify the type of the discriminator column use the HasColumnType method."

ConflictingMapping ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting mapping information."

ConflictingMultiplicities ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting multiplicities."

ConflictingPropertyConfiguration ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "Conflicting configuration settings were specified for property '{0}' on type '{1}': {2}"

ConflictingTypeAnnotation ( object p0, object p1, object p2, object p3 ) : Exception

InvalidOperationException with message like "Annotation '{0}' value '{1}' conflicts with value '{2}' for table '{3}'. Annotations of a given name configured for a given table must be specified only once or have have matching values in each configuration."

ContextConfiguredMultipleTimes ( object p0 ) : Exception

InvalidOperationException with message like "Configuration for DbContext type '{0}' is specified multiple times in the application configuration. Each context can only be configured once."

ContextNotConstructible ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "The target context '{0}' is not constructible. Add a default constructor or provide an implementation of IDbContextFactory."

ConventionNotFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Unable to add the convention '{0}'. Could not find an existing convention of type '{1}' in the current convention set."

DatabaseInitializationStrategy_ModelMismatch ( object p0 ) : Exception

InvalidOperationException with message like "The model backing the '{0}' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269)."

Database_DatabaseAlreadyExists ( object p0 ) : Exception

InvalidOperationException with message like "Database '{0}' cannot be created because it already exists."

Database_NoDatabaseMetadata ( ) : Exception

NotSupportedException with message like "Model compatibility cannot be checked because the database does not contain model metadata. Model compatibility can only be checked for databases created using Code First or Code First Migrations."

Database_NonCodeFirstCompatibilityCheck ( ) : Exception

NotSupportedException with message like "Model compatibility cannot be checked because the DbContext instance was not created using Code First patterns. DbContext instances created from an ObjectContext or using an EDMX file cannot be checked for compatibility."

DbCollectionEntry_CannotSetCollectionProp ( object p0, object p1 ) : Exception

NotSupportedException with message like "The collection navigation property '{0}' on the entity of type '{1}' cannot be set because the entity type does not define a navigation property with a set accessor."

DbConnectionInfo_ConnectionStringNotFound ( object p0 ) : Exception

InvalidOperationException with message like "No connection string named '{0}' could be found in the application config file."

DbContextServices_MissingDefaultCtor ( object p0 ) : Exception

InvalidOperationException with message like "The context factory type '{0}' does not have a public parameterless constructor. Either add a public parameterless constructor, create an IDbContextFactory implementation in the context assembly, or register a context factory using DbConfiguration."

DbContext_ConnectionFactoryReturnedNullConnection ( ) : Exception

InvalidOperationException with message like "The DbConnectionFactory instance returned a null connection."

DbContext_ConnectionHasModel ( ) : Exception

InvalidOperationException with message like "Cannot initialize a DbContext from an entity connection string or an EntityConnection instance together with a DbCompiledModel. If an entity connection string or EntityConnection instance is used, then the model will be created from the metadata in the connection. If a DbCompiledModel is used, then the connection supplied should be a standard database connection (for example, a SqlConnection instance) rather than an entity connection."

DbContext_ConnectionStringNotFound ( object p0 ) : Exception

InvalidOperationException with message like "No connection string named '{0}' could be found in the application config file."

DbContext_ContextUsedInModelCreating ( ) : Exception

InvalidOperationException with message like "The context cannot be used while the model is being created. This exception may be thrown if the context is used inside the OnModelCreating method or if the same context instance is accessed by multiple threads concurrently. Note that instance members of DbContext and related classes are not guaranteed to be thread safe."

DbContext_Disposed ( ) : Exception

InvalidOperationException with message like "The operation cannot be completed because the DbContext has been disposed."

DbContext_MESTNotSupported ( ) : Exception

InvalidOperationException with message like "The DbContext class cannot be used with models that have multiple entity sets per type (MEST)."

DbContext_ProviderNameMissing ( object p0 ) : Exception

InvalidOperationException with message like "The connection string '{0}' in the application's configuration file does not contain the required providerName attribute.""

DbContext_ProviderReturnedNullConnection ( ) : Exception

InvalidOperationException with message like "The provider factory returned a null connection."

DbEntityEntry_DottedPartNotComplex ( object p0, object p1, object p2 ) : Exception

ArgumentException with message like ""The property '{0}' from the property path '{1}' is not a complex property on type '{2}'. Property paths must be composed of complex properties for all except the final property.""

DbEntityEntry_DottedPathMustBeProperty ( object p0 ) : Exception

ArgumentException with message like ""The property path '{0}' cannot be used for navigation properties. Property paths can only be used to access primitive or complex properties.""

DbEntityEntry_NotAComplexProperty ( object p0, object p1 ) : Exception

ArgumentException with message like "The property '{0}' on type '{1}' is not a complex property. The ComplexProperty method can only be used with complex properties. Use the Property, Reference or Collection method."

DbEntityEntry_NotANavigationProperty ( object p0, object p1 ) : Exception

ArgumentException with message like "The property '{0}' on type '{1}' is not a navigation property. The Reference and Collection methods can only be used with navigation properties. Use the Property or ComplexProperty method."

DbEntityEntry_NotAProperty ( object p0, object p1 ) : Exception

ArgumentException with message like "The property '{0}' on type '{1}' is not a primitive property, complex property, collection navigation property, or reference navigation property."

DbEntityEntry_NotAScalarProperty ( object p0, object p1 ) : Exception

ArgumentException with message like "The property '{0}' on type '{1}' is not a primitive or complex property. The Property method can only be used with primitive or complex properties. Use the Reference or Collection method."

DbEntityEntry_NotSupportedForDetached ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Member '{0}' cannot be called for the entity of type '{1}' because the entity does not exist in the context. To add an entity to the context call the Add or Attach method of DbSet<{1}>."

DbEntityEntry_UsedCollectionForReferenceProp ( object p0, object p1 ) : Exception

ArgumentException with message like "The property '{0}' on type '{1}' is a reference navigation property. The Reference method should be used instead of the Collection method."

DbEntityEntry_UsedReferenceForCollectionProp ( object p0, object p1 ) : Exception

ArgumentException with message like "The property '{0}' on type '{1}' is a collection navigation property. The Collection method should be used instead of the Reference method."

DbEntityEntry_WrongGenericForCollectionNavProp ( object p0, object p1, object p2, object p3 ) : Exception

ArgumentException with message like "The generic type argument '{0}' cannot be used with the Member method when accessing the collection navigation property '{1}' on entity type '{2}'. The generic type argument '{3}' must be used instead."

DbEntityEntry_WrongGenericForNavProp ( object p0, object p1, object p2, object p3 ) : Exception

ArgumentException with message like "The navigation property '{0}' on entity type '{1}' cannot be used for entities of type '{2}' because it refers to entities of type '{3}'."

DbEntityEntry_WrongGenericForProp ( object p0, object p1, object p2, object p3 ) : Exception

ArgumentException with message like "The property '{0}' on entity type '{1}' cannot be used for objects of type '{2}' because it is a property for objects of type '{3}'."

DbEntity_BadTypeForCast ( object p0, object p1, object p2 ) : Exception

InvalidCastException with message like "Cannot create a {0}<{1}> from a non-generic {0} for objects of type '{2}'."

DbMember_BadTypeForCast ( object p0, object p1, object p2, object p3, object p4 ) : Exception

InvalidCastException with message like "Cannot create a {0}<{1}, {2}> from a non-generic {0} for entities of type '{3}' with property of type '{4}'."

DbModelBuilder_MissingRequiredCtor ( object p0 ) : Exception

InvalidOperationException with message like "The context type '{0}' must have a public constructor taking an EntityConnection."

DbPropertyEntry_CannotGetCurrentValue ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Cannot get value for property '{0}' from entity of type '{1}' because the property has no get accessor."

DbPropertyEntry_CannotSetCurrentValue ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Cannot set value for property '{0}' on entity of type '{1}' because the property has no set accessor."

DbPropertyEntry_NotSupportedForDetached ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "Member '{0}' cannot be called for property '{1}' because the entity of type '{2}' does not exist in the context. To add an entity to the context call the Add or Attach method of DbSet<{2}>."

DbPropertyEntry_NotSupportedForPropertiesNotInTheModel ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "Member '{0}' cannot be called for property '{1}' on entity of type '{2}' because the property is not part of the Entity Data Model."

DbPropertyEntry_SettingEntityRefNotSupported ( object p0, object p1, object p2 ) : Exception

NotSupportedException with message like "Cannot set value for property '{0}' on entity of type '{1}' because the property has no set accessor and is in the '{2}' state."

DbPropertyValues_AttemptToSetNonValuesOnComplexProperty ( ) : Exception

ArgumentException with message like "A property of a complex type must be set to an instance of the generic or non-generic DbPropertyValues class for that type."

DbPropertyValues_AttemptToSetValuesFromWrongObject ( object p0, object p1 ) : Exception

ArgumentException with message like "Cannot copy values from DbPropertyValues for type '{0}' into DbPropertyValues for type '{1}'."

DbPropertyValues_AttemptToSetValuesFromWrongType ( object p0, object p1 ) : Exception

ArgumentException with message like "Cannot copy from property values for object of type '{0}' into property values for object of type '{1}'."

DbPropertyValues_CannotGetStoreValuesWhenComplexPropertyIsNull ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The property '{0}' in the entity of type '{1}' is null. Store values cannot be obtained for an entity with a null complex property."

DbPropertyValues_CannotGetValuesForState ( object p0, object p1 ) : Exception

InvalidOperationException with message like "{0} cannot be used for entities in the {1} state."

DbPropertyValues_CannotSetNullValue ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "Cannot set non-nullable property '{0}' of type '{1}' to null on object of type '{2}'."

DbPropertyValues_CannotSetPropertyOnNullCurrentValue ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Cannot set the value of the nested property '{0}' because value of the complex property '{1}' to which it belongs is null."

DbPropertyValues_CannotSetPropertyOnNullOriginalValue ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Cannot set the original value of the nested property '{0}' because the original value of the complex property '{1}' to which it belongs is null."

DbPropertyValues_ComplexObjectCannotBeNull ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The value of the complex property '{0}' on entity of type '{1}' is null. Complex properties cannot be set to null and values cannot be set for null complex properties."

DbPropertyValues_NestedPropertyValuesNull ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The value of the nested property values property '{0}' on the values for entity of type '{1}' is null. Nested property values cannot be set to null and values cannot be set for null complex properties."

DbPropertyValues_PropertyDoesNotExist ( object p0, object p1 ) : Exception

ArgumentException with message like "The '{0}' property does not exist or is not mapped for the type '{1}'."

DbPropertyValues_PropertyValueNamesAreReadonly ( ) : Exception

NotSupportedException with message like "The set of property value names is read-only."

DbPropertyValues_WrongTypeForAssignment ( object p0, object p1, object p2, object p3 ) : Exception

InvalidOperationException with message like "Cannot assign value of type '{0}' to property '{1}' of type '{2}' in property values for type '{3}'."

DbQuery_BindingToDbQueryNotSupported ( ) : Exception

NotSupportedException with message like "Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery, DbRawSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList(). For ASP.NET WebForms you can bind to the result of calling ToList() on the query or use Model Binding, for more information see http://go.microsoft.com/fwlink/?LinkId=389592."

DbSet_BadTypeForAddAttachRemove ( object p0, object p1, object p2 ) : Exception

ArgumentException with message like "Cannot call the {0} method for an entity of type '{1}' on a DbSet for entities of type '{2}'. Only entities of type '{2}' or derived from type '{2}' can be added, attached, or removed."

DbSet_BadTypeForCreate ( object p0, object p1 ) : Exception

ArgumentException with message like "Cannot call the Create method for the type '{0}' on a DbSet for entities of type '{1}'. Only entities of type '{1}' or derived from type '{1}' can be created."

DbSet_DbSetUsedWithComplexType ( object p0 ) : Exception

InvalidOperationException with message like "The type '{0}' is mapped as a complex type. The Set method, DbSet objects, and DbEntityEntry objects can only be used with entity types, not complex types."

DbSet_EntityTypeNotInModel ( object p0 ) : Exception

InvalidOperationException with message like "The entity type {0} is not part of the model for the current context."

DbSet_MultipleAddedEntitiesFound ( ) : Exception

InvalidOperationException with message like "Multiple entities were found in the Added state that match the given primary key values."

DbSet_PocoAndNonPocoMixedInSameAssembly ( object p0 ) : Exception

InvalidOperationException with message like "The type '{0}' is not attributed with EdmEntityTypeAttribute but is contained in an assembly attributed with EdmSchemaAttribute. POCO entities that do not use EdmEntityTypeAttribute cannot be contained in the same assembly as non-POCO entities that use EdmEntityTypeAttribute."

DbSet_WrongEntityTypeFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The entity found was of type {0} when an entity of type {1} was requested."

DownScriptWindowsNotSupported ( ) : Exception

Migrations.Infrastructure.MigrationsException with message like "Scripting the downgrade between two specified migrations is not supported."

DuplicateConfiguredColumnOrder ( object p0 ) : Exception

InvalidOperationException with message like "The configured column orders for the table '{0}' contains duplicates. Ensure the specified column order values are distinct."

DuplicateStructuralTypeConfiguration ( object p0 ) : Exception

InvalidOperationException with message like "A configuration for type '{0}' has already been added. To reference the existing configuration use the Entity() or ComplexType() methods."

EagerInternalContext_CannotSetConnectionInfo ( ) : Exception

InvalidOperationException with message like "The connection can not be overridden because this context was created from an existing ObjectContext."

EdmxWriter_EdmxFromModelFirstNotSupported ( ) : Exception

NotSupportedException with message like "Creating a DbModelBuilder or writing the EDMX from a DbContext created using Database First or Model First is not supported. EDMX can only be obtained from a Code First DbContext created without using an existing DbCompiledModel."

EdmxWriter_EdmxFromObjectContextNotSupported ( ) : Exception

NotSupportedException with message like "Creating a DbModelBuilder or writing the EDMX from a DbContext created using an existing ObjectContext is not supported. EDMX can only be obtained from a Code First DbContext created without using an existing DbCompiledModel."

EmptySequence ( ) : Exception

InvalidOperationException with message like "Sequence contains no elements"

EnableMigrations_MultipleContextsWithName ( object p0, object p1 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "More than one context type '{0}' was found in the assembly '{1}'. Specify the fully qualified name of the context."

EnableMigrations_NoContext ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "No context type was found in the assembly '{0}'."

EnableMigrations_NoContextWithName ( object p0, object p1 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "The context type '{0}' was not found in the assembly '{1}'."

EntityClient_CannotOpenBrokenConnection ( ) : Exception

InvalidOperationException with message like "The connection could not be opened because it is broken. The connection must be closed before it can be opened."

EntityClient_ClosedConnectionForUpdate ( ) : Exception

InvalidOperationException with message like "Cannot perform the update operation because the adapter's connection is not open."

EntityClient_ConnectionNotOpen ( ) : Exception

InvalidOperationException with message like "The connection is not open."

EntityClient_ConnectionStringNeededBeforeOperation ( ) : Exception

InvalidOperationException with message like "A connection string must be set on the connection before you attempt this operation."

EntityClient_NoConnectionForAdapter ( ) : Exception

InvalidOperationException with message like "Cannot perform the operation because the adapter does not have a connection."

EntityClient_NoStoreConnectionForUpdate ( ) : Exception

InvalidOperationException with message like "The update operation cannot be performed, because the adapter's connection is not associated with a valid store connection."

EntityKey_UnexpectedNull ( ) : Exception

InvalidOperationException with message like "The requested operation could not be completed, because a null EntityKey property value was returned by the object."

EntityMappingConfiguration_CannotMapIgnoredProperty ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The property '{1}' on type '{0}' cannot be mapped because it has been explicitly excluded from the model or it is of a type not supported by the DbModelBuilderVersion being used."

EntityMappingConfiguration_DuplicateMapInheritedProperties ( object p0 ) : Exception

InvalidOperationException with message like "Properties for type '{0}' can only be mapped once. Ensure the MapInheritedProperties method is only used during one call to the Map method."

EntityMappingConfiguration_DuplicateMappedProperties ( object p0 ) : Exception

InvalidOperationException with message like "Properties for type '{0}' can only be mapped once. Ensure the Properties method is used and that repeated calls specify each non-key property only once."

EntityMappingConfiguration_DuplicateMappedProperty ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Properties for type '{0}' can only be mapped once. The non-key property '{1}' is mapped more than once. Ensure the Properties method specifies each non-key property only once."

EntityMappingConfiguration_InvalidTableSharing ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "The entity types '{0}' and '{1}' cannot share table '{2}' because they are not in the same type hierarchy or do not have a valid one to one foreign key relationship with matching primary keys between them."

EntityMappingConfiguration_TPCWithIAsOnNonLeafType ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "The association '{0}' between entity types '{1}' and '{2}' is invalid. In a TPC hierarchy independent associations are only allowed on the most derived types."

EntityReference_CannotSetSpecialKeys ( ) : Exception

InvalidOperationException with message like "The EntityKey property cannot be set to EntityNotValidKey, NoEntitySetKey, or a temporary key."

EntityReference_LessThanExpectedRelatedEntitiesFound ( ) : Exception

InvalidOperationException with message like "A relationship multiplicity constraint violation occurred: An EntityReference expected at least one related object, but the query returned no related objects from the data store."

EntityReference_MoreThanExpectedRelatedEntitiesFound ( ) : Exception

InvalidOperationException with message like "A relationship multiplicity constraint violation occurred: An EntityReference can have no more than one related object, but the query returned more than one related object. This is a non-recoverable error."

EntityTypeConfigurationMismatch ( object p0 ) : Exception

InvalidOperationException with message like "The type '{0}' has already been configured as a complex type. It cannot be reconfigured as an entity type."

ForeignKeyAttributeConvention_EmptyKey ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The ForeignKeyAttribute on property '{0}' on type '{1}' is not valid. Name must not be empty."

ForeignKeyAttributeConvention_InvalidKey ( object p0, object p1, object p2, object p3 ) : Exception

InvalidOperationException with message like "The ForeignKeyAttribute on property '{0}' on type '{1}' is not valid. The foreign key name '{2}' was not found on the dependent type '{3}'. The Name value should be a comma separated list of foreign key property names."

ForeignKeyAttributeConvention_InvalidNavigationProperty ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "The ForeignKeyAttribute on property '{0}' on type '{1}' is not valid. The navigation property '{2}' was not found on the dependent type '{1}'. The Name value should be a valid navigation property name."

ForeignKeyAttributeConvention_OrderRequired ( object p0 ) : Exception

InvalidOperationException with message like "Unable to determine a composite foreign key ordering for foreign key on type {0}. When using the ForeignKey data annotation on composite foreign key properties ensure order is specified by using the Column data annotation or the fluent API."

ForeignKeyPropertyNotFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The foreign key component '{0}' is not a declared property on type '{1}'. Verify that it has not been explicitly excluded from the model and that it is a valid primitive property."

IQueryable_Not_Async ( object p0 ) : Exception

InvalidOperationException with message like "The source IQueryable doesn't implement IDbAsyncEnumerable{0}. Only sources that implement IDbAsyncEnumerable can be used for Entity Framework asynchronous operations. For more details see http://go.microsoft.com/fwlink/?LinkId=287068."

IQueryable_Provider_Not_Async ( ) : Exception

InvalidOperationException with message like "The provider for the source IQueryable doesn't implement IDbAsyncQueryProvider. Only providers that implement IDbAsyncQueryProvider can be used for Entity Framework asynchronous operations. For more details see http://go.microsoft.com/fwlink/?LinkId=287068."

IncorrectColumnCount ( object p0 ) : Exception

InvalidOperationException with message like "The specified association foreign key columns '{0}' are invalid. The number of columns specified must match the number of primary key columns."

InvalidChainedMappingSyntax ( object p0 ) : Exception

InvalidOperationException with message like "The derived type '{0}' has already been mapped using the chaining syntax. A derived type can only be mapped once using the chaining syntax."

InvalidComplexPropertiesExpression ( object p0 ) : Exception

InvalidOperationException with message like "The properties expression '{0}' is not valid. The expression should represent a property: C#: 't => t.MyProperty' VB.Net: 'Function(t) t.MyProperty'. When specifying multiple properties use an anonymous type: C#: 't => new {{ t.MyProperty1, t.MyProperty2 }}' VB.Net: 'Function(t) New With {{ t.MyProperty1, t.MyProperty2 }}'."

InvalidComplexPropertyExpression ( object p0 ) : Exception

InvalidOperationException with message like "The expression '{0}' is not a valid property expression. The expression should represent a property: C#: 't => t.MyProperty' VB.Net: 'Function(t) t.MyProperty'. Use dotted paths for nested properties: C#: 't => t.MyProperty.MyProperty' VB.Net: 'Function(t) t.MyProperty.MyProperty'."

InvalidDatabaseName ( object p0 ) : Exception

ArgumentException with message like "The database name '{0}' is invalid. Database names must be of the form [.]."

InvalidDiscriminatorType ( object p0 ) : Exception

ArgumentException with message like "Values of type '{0}' cannot be used as type discriminator values. Supported types include byte, signed byte, bool, int16, int32, int64, and string."

InvalidEdmMemberInstance ( ) : Exception

ArgumentException with message like "All 'EdmMember' instances must be a valid member of the EdmType."

InvalidEntitySplittingProperties ( object p0 ) : Exception

InvalidOperationException with message like "Not all properties for type '{0}' have been mapped. Either map those properties or explicitly excluded them from the model."

InvalidEntityType ( object p0 ) : Exception

InvalidOperationException with message like "The type '{0}' was not mapped. Check that the type has not been explicitly excluded by using the Ignore method or NotMappedAttribute data annotation. Verify that the type was defined as a class, is not primitive or generic, and does not inherit from EntityObject."

InvalidNotNullCondition ( object p0, object p1 ) : Exception

InvalidOperationException with message like "An "is not null" condition cannot be specified on property '{0}' on type '{1}' because this property is not included in the model. Check that the property has not been explicitly excluded from the model by using the Ignore method or NotMappedAttribute data annotation."

InvalidPropertiesExpression ( object p0 ) : Exception

InvalidOperationException with message like "The properties expression '{0}' is not valid. The expression should represent a property: C#: 't => t.MyProperty' VB.Net: 'Function(t) t.MyProperty'. When specifying multiple properties use an anonymous type: C#: 't => new {{ t.MyProperty1, t.MyProperty2 }}' VB.Net: 'Function(t) New With {{ t.MyProperty1, t.MyProperty2 }}'."

InvalidPropertyExpression ( object p0 ) : Exception

InvalidOperationException with message like "The expression '{0}' is not a valid property expression. The expression should represent a property: C#: 't => t.MyProperty' VB.Net: 'Function(t) t.MyProperty'."

InvalidResourceName ( object p0 ) : Exception

ArgumentException with message like "'{0}' is not a valid resource name."

InvalidTableMapping ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The type '{0}' has already been mapped to table '{1}'. Specify all mapping aspects of a table in a single Map call."

InvalidTableMapping_NoTableName ( object p0 ) : Exception

InvalidOperationException with message like "Map was called more than once for type '{0}' and at least one of the calls didn't specify the target table name."

InversePropertyAttributeConvention_PropertyNotFound ( object p0, object p1, object p2, object p3 ) : Exception

InvalidOperationException with message like "The InversePropertyAttribute on property '{2}' on type '{3}' is not valid. The property '{0}' is not a valid navigation property on the related type '{1}'. Ensure that the property exists and is a valid reference or collection navigation property."

InversePropertyAttributeConvention_SelfInverseDetected ( object p0, object p1 ) : Exception

InvalidOperationException with message like "A relationship cannot be established from property '{0}' on type '{1}' to property '{0}' on type '{1}'. Check the values in the InversePropertyAttribute to ensure relationship definitions are unique and reference from one navigation property to its corresponding inverse navigation property."

KeyPropertyNotFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The key component '{0}' is not a declared property on type '{1}'. Verify that it has not been explicitly excluded from the model and that it is a valid primitive property."

KeyRegisteredOnDerivedType ( object p0, object p1 ) : Exception

InvalidOperationException with message like "A key is registered for the derived type '{0}'. Keys can only be registered for the root type '{1}'."

LazyInternalContext_CannotReplaceDbConnectionWithEfConnection ( ) : Exception

InvalidOperationException with message like "Can not override the connection for this context with an EntityConnection because the original connection was a standard DbConnection."

LazyInternalContext_CannotReplaceEfConnectionWithDbConnection ( ) : Exception

InvalidOperationException with message like "Can not override the connection for this context with a standard DbConnection because the original connection was an EntityConnection."

Mapping_Default_OCMapping_Member_Type_Mismatch ( object p0, object p1, object p2, object p3, object p4, object p5, object p6, object p7 ) : Exception

Core.MappingException with message like "The type '{0}'('{1}') of the member '{2}' in the conceptual type '{3}' doesn't match with the type '{4}'('{5}') of the member '{6}' on the object side type '{7}'."

Mapping_MESTNotSupported ( object p0, object p1, object p2 ) : Exception

InvalidOperationException with message like "Multiple object sets per type are not supported. The object sets '{0}' and '{1}' can both contain instances of type '{2}'."

MaxLengthAttributeConvention_InvalidMaxLength ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The MaxLengthAttribute on property '{0}' on type '{1} is not valid. The Length value must be greater than zero. Use MaxLength() without parameters to indicate that the string or array can have the maximum allowable length."

MaxLengthAttribute_InvalidMaxLength ( ) : Exception

InvalidOperationException with message like "MaxLengthAttribute must have a Length value that is greater than zero. Use MaxLength() without parameters to indicate that the string or array can have the maximum allowable length."

MetadataOutOfDate ( ) : Exception

Migrations.Infrastructure.MigrationsException with message like "Cannot scaffold the next migration because the target database was created with a version of Code First earlier than EF 4.3 and does not contain the migrations history table. To start using migrations against this database, ensure the current model is compatible with the target database and execute the migrations Update process. (In Visual Studio you can use the Update-Database command from Package Manager Console to execute the migrations Update process)."

MigrationNotFound ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "The specified target migration '{0}' does not exist. Ensure that target migration refers to an existing migration id."

MigrationsNamespaceNotUnderRootNamespace ( object p0, object p1 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "In VB.NET projects, the migrations namespace '{0}' must be under the root namespace '{1}'. Update the migrations project's root namespace to allow classes under the migrations namespace to be added."

MigrationsPendingException ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsPendingException with message like "Unable to generate an explicit migration because the following explicit migrations are pending: [{0}]. Apply the pending explicit migrations before attempting to generate a new explicit migration."

MinLengthAttribute_InvalidMinLength ( ) : Exception

InvalidOperationException with message like "MinLengthAttribute must have a Length value that is zero or greater."

ModelBuilder_KeyPropertiesMustBePrimitive ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The property '{0}' cannot be used as a key property on the entity '{1}' because the property type is not a valid key type. Only scalar types, string and byte[] are supported key types."

ModelBuilder_PropertyFilterTypeMustBePrimitive ( object p0 ) : Exception

InvalidOperationException with message like "The type '{0}' cannot be used to filter properties. Only scalar types, string, and byte[] are supported."

ModelGeneration_UnableToDetermineKeyOrder ( object p0 ) : Exception

InvalidOperationException with message like "Unable to determine composite primary key ordering for type '{0}'. Use the ColumnAttribute (see http://go.microsoft.com/fwlink/?LinkId=386388) or the HasKey method (see http://go.microsoft.com/fwlink/?LinkId=386387) to specify an order for composite primary keys."

ModificationFunctionParameterNotFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "A parameter binding to the property '{0}' was not found on the modification function '{1}'. Ensure that the parameter is valid for this modification operation and that it is not database generated."

ModificationFunctionParameterNotFoundOriginal ( object p0, object p1 ) : Exception

InvalidOperationException with message like "An original value parameter binding to the property '{0}' was not found on the modification function '{1}'. Ensure that the parameter is a concurrency token."

MoreThanOneElement ( ) : Exception

InvalidOperationException with message like "Sequence contains more than one element"

MoreThanOneMatch ( ) : Exception

InvalidOperationException with message like "Sequence contains more than one matching element"

MultiplePropertiesMatchedAsKeys ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Multiple potential primary key properties named '{0}' but differing only by case were found on entity type '{1}'. Configure the primary key explicitly using the HasKey fluent API or the KeyAttribute data annotation."

NavigationInverseItself ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' cannot be the inverse of itself."

NavigationPropertyNotFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The navigation property '{0}' is not a declared property on type '{1}'. Verify that it has not been explicitly excluded from the model and that it is a valid navigation property."

NoMatch ( ) : Exception

InvalidOperationException with message like "Sequence contains no matching element"

NoSqlGeneratorForProvider ( object p0 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "No MigrationSqlGenerator found for provider '{0}'. Use the SetSqlGenerator method in the target migrations configuration class to register additional SQL generators."

NotImplemented ( ) : Exception

The exception that is thrown when the author has yet to implement the logic at this point in the program. This can act as an exception based TODO tag.

NotSupported ( ) : Exception

The exception that is thrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality.

ObjectStateManager_ConflictingChangesOfRelationshipDetected ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Conflicting changes to the role '{0}' of the relationship '{1}' have been detected."

OrphanedConfiguredTableDetected ( object p0 ) : Exception

InvalidOperationException with message like "The table '{0}' was configured but is not used in any mappings. Verify the mapping configuration for '{0}' is correct."

PartialFkOperation ( object p0, object p1 ) : Exception

Migrations.Infrastructure.MigrationsException with message like "The Foreign Key on table '{0}' with columns '{1}' could not be created because the principal key columns could not be determined. Use the AddForeignKey fluent API to fully specify the Foreign Key."

PropertyNotFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The property '{0}' is not a declared property on type '{1}'. Verify that the property has not been explicitly excluded from the model by using the Ignore method or NotMappedAttribute data annotation. Make sure that it is a valid primitive property."

RelatedEnd_CannotCreateRelationshipBetweenTrackedAndNoTrackedEntities ( object p0 ) : Exception

InvalidOperationException with message like "The object in the '{0}' role cannot be automatically added to the context because it was retrieved using the NoTracking merge option. Explicitly attach the entity to the ObjectContext before defining the relationship."

RelatedEnd_CannotCreateRelationshipEntitiesInDifferentContexts ( ) : Exception

InvalidOperationException with message like "The relationship between the two objects cannot be defined because they are attached to different ObjectContext objects."

RelatedEnd_EntitySetIsNotValidForRelationship ( object p0, object p1, object p2, object p3, object p4 ) : Exception

InvalidOperationException with message like "The relationship cannot be defined because the EntitySet name '{0}.{1}' is not valid for the role '{2}' in association set name '{3}.{4}'."

RelatedEnd_InvalidEntityContextForAttach ( ) : Exception

InvalidOperationException with message like "The object being attached to the source object is not attached to the same ObjectContext as the source object."

RelatedEnd_InvalidEntityStateForAttach ( ) : Exception

InvalidOperationException with message like "The object being attached is in an added or deleted state. Relationships cannot be created for objects in this state."

RelatedEnd_InvalidNthElementContextForAttach ( object p0 ) : Exception

InvalidOperationException with message like "The object at index {0} in the specified collection of objects is not attached to the same ObjectContext as source object of this EntityCollection."

RelatedEnd_InvalidNthElementNullForAttach ( object p0 ) : Exception

InvalidOperationException with message like "The object at index {0} in the specified collection of objects is null."

RelatedEnd_InvalidNthElementStateForAttach ( object p0 ) : Exception

InvalidOperationException with message like "The object at index {0} in the specified collection of objects is in an added or deleted state. Relationships cannot be created for objects in this state."

RelatedEnd_InvalidOwnerStateForAttach ( ) : Exception

InvalidOperationException with message like "Attach is not a valid operation when the source object associated with this related end is in an added, deleted, or detached state. Objects loaded using the NoTracking merge option are always detached."

RelatedEnd_LoadCalledOnAlreadyLoadedNoTrackedRelatedEnd ( ) : Exception

InvalidOperationException with message like "When an object is returned with a NoTracking merge option, Load cannot be called when the IsLoaded property is true."

RelatedEnd_LoadCalledOnNonEmptyNoTrackedRelatedEnd ( ) : Exception

InvalidOperationException with message like "When an object is returned with a NoTracking merge option, Load can only be called when the EntityCollection or EntityReference does not contain objects."

RelatedEnd_MismatchedMergeOptionOnLoad ( object p0 ) : Exception

InvalidOperationException with message like "Related objects cannot be loaded using the {0} merge option. Relationships cannot be created when one object was retrieved using a NoTracking merge option and the other object was retrieved using a different merge option."

RelatedEnd_OwnerIsNull ( ) : Exception

InvalidOperationException with message like "Requested operation is not allowed when the owner of this RelatedEnd is null. RelatedEnd objects that were created with the default constructor should only be used as a container during serialization."

RelatedEnd_RelatedEndNotAttachedToContext ( object p0 ) : Exception

InvalidOperationException with message like "The {0} could not be loaded because it is not attached to an ObjectContext."

RelatedEnd_RelatedEndNotFound ( ) : Exception

InvalidOperationException with message like "At least one related end in the relationship could not be found."

RelatedEnd_UnableToAddRelationshipWithDeletedEntity ( ) : Exception

InvalidOperationException with message like "Adding a relationship with an entity which is in the Deleted state is not allowed."

RelationshipManager_NavigationPropertyNotFound ( object p0 ) : Exception

InvalidOperationException with message like "The specified navigation property {0} could not be found."

ResultBindingNotFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "A result binding for the property '{0}' was not found on the modification function '{1}'. Ensure that the property is database generated."

SqlConnectionFactory_MdfNotSupported ( object p0 ) : Exception

NotSupportedException with message like "The database name '{0}' is not supported because it is an MDF file name. A full connection string must be provided to attach an MDF file."

StoreTypeNotFound ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The store type '{0}' could not be found in the {1} provider manifest"

StringLengthAttributeConvention_InvalidMaximumLength ( object p0, object p1 ) : Exception

InvalidOperationException with message like "The StringLengthAttribute on property '{0}' on type '{1}' is not valid. The maximum length must be greater than zero. Use MaxLength() without parameters to indicate that the string or array can have the maximum allowable length."

TableNotFound ( object p0 ) : Exception

InvalidOperationException with message like "The specified table '{0}' was not found in the model. Ensure that the table name has been correctly specified."

UnableToDeterminePrincipal ( object p0, object p1 ) : Exception

InvalidOperationException with message like "Unable to determine the principal end of an association between the types '{0}' and '{1}'. The principal end of this association must be explicitly configured using either the relationship fluent API or data annotations."

UnableToDispatchAddOrUpdate ( object p0 ) : Exception

InvalidOperationException with message like "Unable to call public, instance method AddOrUpdate on derived IDbSet type '{0}'. Method not found."

UnableToMoveHistoryTableWithAuto ( ) : Exception

Migrations.Infrastructure.MigrationsException with message like "Automatic migrations that affect the location of the migrations history system table (such as default schema changes) are not supported. Please use code-based migrations for operations that affect the location of the migrations history system table."

UnableToUpgradeHistoryWhenCustomFactory ( ) : Exception

Migrations.Infrastructure.MigrationsException with message like "An existing EF5 migrations history table was detected but could not be upgraded because a custom history context factory has been configured. To upgrade an existing EF5 database, ensure there is no custom history context factory configured."

UnmappedAbstractType ( object p0 ) : Exception

InvalidOperationException with message like "The abstract type '{0}' has no mapped descendants and so cannot be mapped. Either remove '{0}' from the model or add one or more types deriving from '{0}' to the model. "

UnsupportedHybridInheritanceMapping ( object p0 ) : Exception

NotSupportedException with message like "The type '{0}' cannot be mapped as defined because it maps inherited properties from types that use entity splitting or another form of inheritance. Either choose a different inheritance mapping strategy so as to not map inherited properties, or change all types in the hierarchy to map inherited properties and to not use splitting. "

UnsupportedUseOfV3Type ( object p0, object p1 ) : Exception

NotSupportedException with message like "The enum or spatial property '{1}' on type '{0}' cannot be mapped. Use DbModelBuilderVersion 'V5_0' or later to map enum or spatial properties."