Determines whether a specified object is valid. (Overrides <see cref="M:System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid(System.Object)"/>)
</summary>
<remarks>
This method returns <c>true</c> if the <paramref name="value"/> is null.
It is assumed the <see cref="T:System.ComponentModel.DataAnnotations.RequiredAttribute"/> is used if the value may not be null.
</remarks>
<param name="value">The object to validate.</param>
<returns><c>true</c> if the value is null or less than or equal to the specified maximum length, otherwise <c>false</c></returns>
<exception cref="T:System.InvalidOperationException">Length is zero or less than negative one.</exception>
Applies formatting to a specified error message. (Overrides <see cref="M:System.ComponentModel.DataAnnotations.ValidationAttribute.FormatErrorMessage(System.String)"/>)
</summary>
<param name="name">The name to include in the formatted string.</param>
<returns>A localized string to describe the maximum acceptable length.</returns>
Determines whether a specified object is valid. (Overrides <see cref="M:System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid(System.Object)"/>)
</summary>
<remarks>
This method returns <c>true</c> if the <paramref name="value"/> is null.
It is assumed the <see cref="T:System.ComponentModel.DataAnnotations.RequiredAttribute"/> is used if the value may not be null.
</remarks>
<param name="value">The object to validate.</param>
<returns><c>true</c> if the value is null or greater than or equal to the specified minimum length, otherwise <c>false</c></returns>
<exception cref="T:System.InvalidOperationException">Length is less than zero.</exception>
Applies formatting to a specified error message. (Overrides <see cref="M:System.ComponentModel.DataAnnotations.ValidationAttribute.FormatErrorMessage(System.String)"/>)
</summary>
<param name="name">The name to include in the formatted string.</param>
<returns>A localized string to describe the minimum acceptable length.</returns>
IAnnotatedDataModelItem is implemented by model-specific base types for all types with an <see cref="P:System.Data.Entity.Edm.Common.IAnnotatedDataModelItem.Annotations"/> property. <seealso cref="T:System.Data.Entity.Edm.EdmDataModelItem"/>
INamedDataModelItem is implemented by model-specific base types for all types with a <see cref="P:System.Data.Entity.Edm.Common.INamedDataModelItem.Name"/> property. <seealso cref="T:System.Data.Entity.Edm.EdmNamedMetadataItem"/>
EdmStructuralMember is the base for all types that represent members of structural items in the Entity Data Model (EDM) metadata construction and modification API.
Encapsulates a cloned <see cref="P:System.Data.Entity.Internal.ClonedObjectContext.ObjectContext"/> and store <see cref="T:System.Data.Common.DbConnection"/>. Note that these
objects are disposable and should be used in a using block to ensure both the cloned context and the
Creates a clone of the given <see cref="P:System.Data.Entity.Internal.ClonedObjectContext.ObjectContext"/>. The underlying <see cref="T:System.Data.Common.DbConnection"/> of
the context is also cloned and the given connection string is used for the connection string of
Creates a database using the core provider (i.e. ObjectContext.CreateDatabase) or
by using Code First Migrations <see cref="T:System.Data.Entity.Migrations.DbMigrator"/> to create an empty database
and the perform an automatic migration to the current model.
Migrations is used if Code First is being used and the EF provider is for SQL Server
or SQL Compact. The core is used for non-Code First models and for other providers even
when using Code First.
</summary>
</member>
<member name="T:System.Data.Entity.DbContext">
<summary>
A DbContext instance represents a combination of the Unit Of Work and Repository patterns such that
it can be used to query from a database and group together changes that will then be written
back to the store as a unit.
DbContext is conceptually similar to ObjectContext.
</summary>
<remarks>
DbContext is usually used with a derived type that contains <see cref="T:System.Data.Entity.DbSet`1"/> properties for
the root entities of the model. These sets are automatically initialized when the
instance of the derived class is created. This behavior can be modified by applying the
<see cref="T:System.Data.Entity.Infrastructure.SuppressDbSetInitializationAttribute"/> attribute to either the entire derived context
class, or to individual properties on the class.
The Entity Data Model backing the context can be specified in several ways. When using the Code First
approach, the <see cref="T:System.Data.Entity.DbSet`1"/> properties on the derived context are used to build a model
by convention. The protected OnModelCreating method can be overridden to tweak this model. More
control over the model used for the Model First approach can be obtained by creating a <see cref="T:System.Data.Entity.Infrastructure.DbCompiledModel"/>
explicitly from a <see cref="T:System.Data.Entity.DbModelBuilder"/> and passing this model to one of the DbContext constructors.
When using the Database First or Model First approach the Entity Data Model can be created using the
Entity Designer (or manually through creation of an EDMX file) and then this model can be specified using
entity connection string or an <see cref="T:System.Data.EntityClient.EntityConnection"/> object.
The connection to the database (including the name of the database) can be specified in several ways.
If the parameterless DbContext constructor is called from a derived context, then the name of the derived context
is used to find a connection string in the app.config or web.config file. If no connection string is found, then
the name is passed to the DefaultConnectionFactory registered on the <see cref="T:System.Data.Entity.Database"/> class. The connection
factory then uses the context name as the database name in a default connection string. (This default connection
string points to .\SQLEXPRESS on the local machine unless a different DefaultConnectionFactory is registered.)
Instead of using the derived context name, the connection/database name can also be specified explicitly by
passing the name to one of the DbContext constructors that takes a string. The name can also be passed in
the form "name=myname", in which case the name must be found in the config file or an exception will be thrown.
Note that the connection found in the app.config or web.config file can be a normal database connection
string (not a special Entity Framework connection string) in which case the DbContext will use Code First.
However, if the connection found in the config file is a special Entity Framework connection string, then the
DbContext will use Database/Model First and the model specified in the connection string will be used.
An existing or explicitly created DbConnection can also be used instead of the database/connection name.
A <see cref="T:System.Data.Entity.DbModelBuilderVersionAttribute"/> can be applied to a class derived from DbContext to set the
version of conventions used by the context when it creates a model. If no attribute is applied then the
Validates tracked entities and returns a Collection of <see cref="T:System.Data.Entity.Validation.DbEntityValidationResult"/> containing validation results.
</summary>
<returns>
Collection of validation results for invalid entities. The collection is never null and must not contain null
values or results for valid entities.
</returns>
<remarks>
1. This method calls DetectChanges() to determine states of the tracked entities unless
DbContextConfiguration.AutoDetectChangesEnabled is set to false.
2. By default only Added on Modified entities are validated. The user is able to change this behavior
Helper class that is used to further configure a table being created from a CreateTable call on <see cref="T:System.Data.Entity.Migrations.DbMigration"/>.
Generates a namespace, using statements and class definition.
</summary>
<param name = "namespace">Namespace that code should be generated in.</param>
<param name = "className">Name of the class that should be generated.</param>
<param name = "writer">Text writer to add the generated code to.</param>
<param name = "base">Base class for the generated class.</param>
<param name = "designer">A value indicating if this class is being generated for a code-behind file.</param>
<param name="namespaces">Namespaces for which using directives will be added. If null, then the namespaces returned from GetDefaultNamespaces will be used.</param>
Generates code to perform an <see cref="T:System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation"/> as part of a <see cref="T:System.Data.Entity.Migrations.Model.CreateTableOperation"/>.
</summary>
<param name="addPrimaryKeyOperation">The operation to generate code for.</param>
<param name="writer">Text writer to add the generated code to.</param>
Generates code to perform an <see cref="T:System.Data.Entity.Migrations.Model.AddForeignKeyOperation"/> as part of a <see cref="T:System.Data.Entity.Migrations.Model.CreateTableOperation"/>.
</summary>
<param name="addForeignKeyOperation">The operation to generate code for.</param>
<param name="writer">Text writer to add the generated code to.</param>
Generates code to perform a <see cref="T:System.Data.Entity.Migrations.Model.CreateIndexOperation"/> as part of a <see cref="T:System.Data.Entity.Migrations.Model.CreateTableOperation"/>.
</summary>
<param name="createIndexOperation">The operation to generate code for.</param>
<param name="writer">Text writer to add the generated code to.</param>
Represents an exception that occurred while running an operation in another AppDomain in the <see cref="T:System.Data.Entity.Migrations.Design.ToolingFacade"/>.
Generates a namespace, using statements and class definition.
</summary>
<param name = "namespace">Namespace that code should be generated in.</param>
<param name = "className">Name of the class that should be generated.</param>
<param name = "writer">Text writer to add the generated code to.</param>
<param name = "base">Base class for the generated class.</param>
<param name = "designer">A value indicating if this class is being generated for a code-behind file.</param>
<param name="namespaces">Namespaces for which Imports directives will be added. If null, then the namespaces returned from GetDefaultNamespaces will be used.</param>
Generates code to perform an <see cref="T:System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation"/> as part of a <see cref="T:System.Data.Entity.Migrations.Model.CreateTableOperation"/>.
</summary>
<param name="addPrimaryKeyOperation">The operation to generate code for.</param>
<param name="writer">Text writer to add the generated code to.</param>
Generates code to perform an <see cref="T:System.Data.Entity.Migrations.Model.AddForeignKeyOperation"/> as part of a <see cref="T:System.Data.Entity.Migrations.Model.CreateTableOperation"/>.
</summary>
<param name="addForeignKeyOperation">The operation to generate code for.</param>
<param name="writer">Text writer to add the generated code to.</param>
Generates code to perform a <see cref="T:System.Data.Entity.Migrations.Model.CreateIndexOperation"/> as part of a <see cref="T:System.Data.Entity.Migrations.Model.CreateTableOperation"/>.
</summary>
<param name="createIndexOperation">The operation to generate code for.</param>
<param name="writer">Text writer to add the generated code to.</param>
Initializes a new instance of the MigrationsException class.
</summary>
<param name="message">The message that describes the error.</param>
<param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. </param>
Initializes a new instance of the MigrationsException class with serialized data.
</summary>
<param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
<param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
Decorator to produce a SQL script instead of applying changes to the database.
Using this decorator to wrap <see cref="T:System.Data.Entity.Migrations.DbMigrator"/> will prevent <see cref="T:System.Data.Entity.Migrations.DbMigrator"/>
Initializes a new instance of the MigratorScriptingDecorator class.
</summary>
<param name = "innerMigrator">The migrator that this decorator is wrapping.</param>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Migrations.Infrastructure.MigratorScriptingDecorator.ScriptUpdate(System.String,System.String)" -->
Outputs the tab string once for each level of indentation according to the <see cref = "P:System.CodeDom.Compiler.IndentedTextWriter.Indent" /> property.
A string 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."
A string like "'{0}' is not a valid target migration. When targeting a previously applied automatic migration, use the full migration id including timestamp."
A string 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)."
A string 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."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Strings.UnableToDispatchAddOrUpdate(System.Object)" -->
A string like "No MigrationSqlGenerator found for provider '{0}'. Use the SetSqlGenerator method in the target migrations configuration class to register additional SQL generators."
A string like "Could not load assembly '{0}'. (If you are using Code First Migrations inside Visual Studio this can happen if the startUp project for your solution does not reference the project that contains your migrations. You can either change the startUp project for your solution or use the -StartUpProjectName parameter.)"
A string 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."
A string 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."
A string 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."
A string 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."
A string 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'."
A string 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'."
A string 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 }}'."
A string 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 }}'."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Strings.DuplicateStructuralTypeConfiguration(System.Object)" -->
A string 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, nested or generic, and does not inherit from ComplexObject."
A string 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, nested or generic, and does not inherit from EntityObject."
A string 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."
A string like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting cascade delete operations using 'WillCascadeOnDelete'."
A string 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."
A string 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."
A string like "Unable to determine composite primary key ordering for type '{0}'. Use the ColumnAttribute or the HasKey method to specify an order for composite primary keys."
A string 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."
A string 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."
A string 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."
A string 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."
A string 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."
A string 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."
A string 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."
A string like "Values of type '{0}' cannot be used as type discriminator values. Supported types include byte, signed byte, bool, int16, int32, int64, and string."
A string like "Properties for type '{0}' can only be mapped once. Ensure the MapInheritedProperties method is only used during one call to the Map method."
A string 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."
A string 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."
A string 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."
A string 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."
A string 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."
A string 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."
A string like "The specified association foreign key columns '{0}' are invalid. The number of columns specified must match the number of primary key columns."
A string 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."
A string like "The abstract type '{0}' has no mapped descendents and so cannot be mapped. Either remove '{0}' from the model or add one or more types deriving from '{0}' to the model. "
A string 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. "
A string 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."
A string 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."
A string like "Cannot set value for property '{0}' on entity of type '{1}' because the property has no set accessor."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Strings.DbPropertyEntry_NotSupportedForDetached(System.Object,System.Object,System.Object)" -->
A string 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."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Strings.DbEntityEntry_NotSupportedForDetached(System.Object,System.Object)" -->
A string 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."
A string 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."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Strings.DbEntity_BadTypeForCast(System.Object,System.Object,System.Object)" -->
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Strings.DbMember_BadTypeForCast(System.Object,System.Object,System.Object,System.Object,System.Object)" -->
A string like "The property '{0}' on type '{1}' is a collection navigation property. The Collection method should be used instead of the Reference method."
A string like "The property '{0}' on type '{1}' is a reference navigation property. The Reference method should be used instead of the Collection method."
A string 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."
A string 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."
A string 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."
A string like "The property '{0}' on type '{1}' is not a primitive property, complex property, collection navigation property, or reference navigation property."
A string 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.""
A string like ""The property path '{0}' cannot be used for navigation properties. Property paths can only be used to access primitive or complex properties.""
A string 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}'."
A string 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."
A string 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."
A string 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."
A string 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."
A string 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)."
A string like "Database '{0}' cannot be created because it already exists."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Strings.Database_BadLegacyInitializerEntry(System.Object,System.Object)" -->
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Strings.Database_InitializeFromLegacyConfigFailed(System.Object,System.Object)" -->
A string like "Failed to set database initializer of type '{0}' for DbContext type '{1}' specified in the application configuration. See inner exception for details."
A string like "Configuration for DbContext type '{0}' is specified multiple times in the application configuration. Each context can only be configured once."
A string like "Failed to set Database.DefaultConnectionFactory to an instance of the '{0}' type as specified in the application configuration. See inner exception for details."
A string 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."
A string 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."
A string 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."
A string 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."
A string like "Role '{0}' in AssociationSets '{1}' and '{2}' refers to the same EntitySet '{3}' in EntityContainer '{4}'. Make sure that if two or more AssociationSets refer to the same AssociationType, the ends do not refer to the same EntitySet."
A string like "Type '{0}' is derived from type '{1}' that is the type for EntitySet '{2}'. Type '{0}' defines new concurrency requirements that are not allowed for subtypes of base EntitySet types."
A string like "End '{0}' on relationship '{1}' cannot have an operation specified because its multiplicity is '*'. Operations cannot be specified on ends with multiplicity '*'."
A string like "Multiplicity is not valid in Role '{0}' in relationship '{1}'. Because all the properties in the Dependent Role are nullable, multiplicity of the Principal Role must be '0..1'."
A string like "Multiplicity conflicts with the referential constraint in Role '{0}' in relationship '{1}'. Because at least one of the properties in the Dependent Role is non-nullable, multiplicity of the Principal Role must be '1'."
A string like "Multiplicity conflicts with the referential constraint in Role '{0}' in relationship '{1}'. Because all of the properties in the Dependent Role are non-nullable, multiplicity of the Principal Role must be '1'."
A string like "Properties referred by the Dependent Role '{0}' must be a subset of the key of the EntityType '{1}' referred to by the Dependent Role in the referential constraint for relationship '{2}'."
A string like "Multiplicity is not valid in Role '{0}' in relationship '{1}'. Because the Dependent Role refers to the key properties, the upper bound of the multiplicity of the Dependent Role must be '1'."
A string like "Multiplicity is not valid in Role '{0}' in relationship '{1}'. Because the Dependent Role properties are not the key properties, the upper bound of the multiplicity of the Dependent Role must be '*'."
A string like "The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role. The type of property '{0}' on entity '{1}' does not match the type of property '{2}' on entity '{3}' in the referential constraint '{4}'."
A string 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)."
A string 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."
A string like "Connection to the database failed. The connection string is configured with an invalid LocalDB server name. This may have been set in 'global.asax' by a pre-release version of MVC4. The default connection factory is now set in web.config so the line in 'global.asax' starting with 'Database.DefaultConnectionFactory = ' should be removed. See http://go.microsoft.com/fwlink/?LinkId=243166 for details."
A string like "An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct."
A string like "An error occurred while saving entities that do not expose foreign key properties for their relationships. The EntityEntries property will return null because a single entity cannot be identified as the source of the exception. Handling of exceptions while saving can be made easier by exposing foreign key properties in your entity types. See the InnerException for details."
A string 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."
A string like "Model compatibility cannot be checked because the EdmMetadata type was not included in the model. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions."
A string 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."
A string like "Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) 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()."
A string like "The Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties."
A string 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."
A string 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."
A string 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."
A string like "Creating a DbModelBuilder or writing the EDMX from a DbContext created using an existing DbCompiledModel is not supported. EDMX can only be obtained from a Code First DbContext created without using an existing DbCompiledModel."
A string 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."
A string like "Code generated using the T4 templates for Database First and Model First development may not work correctly if used in Code First mode. To continue using Database First or Model First ensure that the Entity Framework connection string is specified in the config file of executing application. To use these classes, that were generated from Database First or Model First, with Code First add any additional configuration using attributes or the DbModelBuilder API and then remove the code that throws this exception."
A string 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."
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)."
Migrations.Infrastructure.MigrationsException with message like "The specified target migration '{0}' does not exist. Ensure that target migration refers to an existing migration id."
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."
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."
Migrations.Infrastructure.MigrationsException with message like "'{0}' is not a valid migration. Code-based migrations must be used for both source and target when scripting the upgrade between them."
Migrations.Infrastructure.MigrationsException with message like "The target context '{0}' is not constructible. Add a default constructor or provide an implementation of IDbContextFactory."
Migrations.Infrastructure.MigrationsException with message like "The specified migration name '{0}' is ambiguous. Specify the full migration id including timestamp instead."
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."
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."
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)."
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."
Migrations.Infrastructure.MigrationsException with message like "Direct column renaming is not supported by SQL Server Compact. To rename a column in SQL Server Compact, you will need to recreate it."
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."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Error.UnableToDispatchAddOrUpdate(System.Object)" -->
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."
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."
InvalidOperationException with message like "The type '{0}' has already been configured as a complex type. It cannot be reconfigured as an entity type."
InvalidOperationException with message like "The type '{0}' has already been configured as an entity type. It cannot be reconfigured as a complex type."
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."
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."
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."
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."
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'."
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'."
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 }}'."
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 }}'."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Error.DuplicateStructuralTypeConfiguration(System.Object)" -->
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, nested or generic, and does not inherit from ComplexObject."
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, nested or generic, and does not inherit from EntityObject."
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."
InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting mapping information."
InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting cascade delete operations using 'WillCascadeOnDelete'."
InvalidOperationException with message like "The navigation property '{0}' declared on type '{1}' has been configured with conflicting multiplicities."
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."
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."
InvalidOperationException with message like "Unable to determine composite primary key ordering for type '{0}'. Use the ColumnAttribute or the HasKey method to specify an order for composite primary keys."
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."
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."
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."
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."
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."
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."
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."
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."
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."
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."
InvalidOperationException with message like "Unable to add the convention '{0}'. Could not find an existing convention of type '{1}' in the current convention set."
InvalidOperationException with message like "Not all properties for type '{0}' have been mapped. Either map those properties or explicitly excluded them from the model."
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."
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."
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."
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."
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."
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."
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."
InvalidOperationException with message like "The specified table '{0}' was not found in the model. Ensure that the table name has been correctly specified."
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."
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."
InvalidOperationException with message like "The abstract type '{0}' has no mapped descendents and so cannot be mapped. Either remove '{0}' from the model or add one or more types deriving from '{0}' to the model. "
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. "
InvalidOperationException with message like "The table '{0}' was configured but is not used in any mappings. Verify the mapping configuration for '{0}' is correct."
InvalidOperationException with message like "The configured column orders for the table '{0}' contains duplicates. Ensure the specified column order values are distinct."
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."
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."
InvalidOperationException with message like "Cannot set value for property '{0}' on entity of type '{1}' because the property has no set accessor."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Error.DbPropertyEntry_NotSupportedForDetached(System.Object,System.Object,System.Object)" -->
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."
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."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Error.DbEntityEntry_NotSupportedForDetached(System.Object,System.Object)" -->
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."
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."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Error.DbEntity_BadTypeForCast(System.Object,System.Object,System.Object)" -->
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Error.DbMember_BadTypeForCast(System.Object,System.Object,System.Object,System.Object,System.Object)" -->
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."
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."
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."
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."
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."
ArgumentException with message like "The property '{0}' on type '{1}' is not a primitive property, complex property, collection navigation property, or reference navigation property."
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.""
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.""
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}'."
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."
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}'."
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."
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."
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."
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."
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."
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."
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)."
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."
NotSupportedException with message like "Model compatibility cannot be checked because the EdmMetadata type was not included in the model. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions."
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."
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Error.Database_BadLegacyInitializerEntry(System.Object,System.Object)" -->
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.Resources.Error.Database_InitializeFromLegacyConfigFailed(System.Object,System.Object)" -->
InvalidOperationException with message like "Failed to set database initializer of type '{0}' for DbContext type '{1}' specified in the application configuration. See inner exception for details."
InvalidOperationException with message like "Configuration for DbContext type '{0}' is specified multiple times in the application configuration. Each context can only be configured once."
InvalidOperationException with message like "Failed to set Database.DefaultConnectionFactory to an instance of the '{0}' type as specified in the application configuration. See inner exception for details."
InvalidOperationException with message like "The connection string '{0}' in the application's configuration file does not contain the required providerName attribute.""
ArgumentException with message like "The type of one of the primary key values did not match the type defined in the entity. See inner exception for details."
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."
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."
NotSupportedException with message like "Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) 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()."
ArgumentException with message like "The Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties."
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."
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."
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."
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}'."
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."
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."
NotSupportedException with message like "Creating a DbModelBuilder or writing the EDMX from a DbContext created using an existing DbCompiledModel is not supported. EDMX can only be obtained from a Code First DbContext created without using an existing DbCompiledModel."
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."
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."
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."
InvalidOperationException with message like "Can not override the connection for this context with a standard DbConnection because the original connection was an EntityConnection."
InvalidOperationException with message like "Can not override the connection for this context with an EntityConnection because the original connection was a standard DbConnection."
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.
Allows the construction and modification of a user-specified annotation (name-value pair) on a <see cref="T:System.Data.Entity.Edm.Common.DataModelItem"/> instance.
Gets or sets an optional namespace that can be used to distinguish the annotation from others with the same <see cref="P:System.Data.Entity.Edm.Common.DataModelAnnotation.Name"/> value.
DbAliasedMetadataItem provides the base type for all Database Metadata types that can have an optional <see cref="P:System.Data.Entity.Edm.Db.DbAliasedMetadataItem.DatabaseIdentifier"/> that should be used instead of the item's <see cref="P:System.Data.Entity.Edm.Db.DbNamedMetadataItem.Name"/> when referring to the item in the database.
NamedDbItem is the base for all types in the Database Metadata construction and modification API with a <see cref="P:System.Data.Entity.Edm.Db.DbNamedMetadataItem.Name"/> property.
Gets or sets an optional <see cref="T:System.Data.Entity.Edm.Db.DbPrimitiveTypeFacets"/> instance that applies additional constraints to the referenced database-specific type of the column.
Allows the construction and modification of additional constraints that can be applied to a specific use of a primitive type in a Database Metadata item.
Gets or sets an optional value indicating whether the referenced type should be considered to have its intrinsic maximum length, rather than a specific value.
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.Db.DbTableMetadata"/> instances that specifies the tables declared within the schema.
Gets or sets a <see cref="T:System.Data.Entity.Edm.Db.DbStoreGeneratedPattern"/> value indicating if and how the value of the column is automatically generated.
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.Db.DbTableColumnMetadata"/> instances that specifies the columns present within the table.
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.Db.DbTableColumnMetadata"/> instances from the <see cref="P:System.Data.Entity.Edm.Db.DbTableMetadata.Columns"/> collection of the table that are part of the primary key.
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.Db.DbForeignKeyConstraintMetadata"/> instances that defines the foreign key constraints sourced from the table.
Gets or sets an optional <see cref="T:System.Data.Entity.Edm.Db.DbPrimitiveTypeFacets"/> instance that applies additional constraints to a referenced primitive type.
</summary>
<remarks>
Accessing this property forces the creation of a DbPrimitiveTypeFacets value if no value has previously been set. Use <see cref="P:System.Data.Entity.Edm.Db.DbTypeMetadata.HasFacets"/> to determine whether or not this property currently has a value.
Represents the mapping of an EDM association end ( <see cref="T:System.Data.Entity.Edm.EdmAssociationEnd"/> ) as a collection of property mappings ( <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbEdmPropertyMapping"/> ).
DbMappingMetadataItem is the base for all types in the EDM-to-Database Mapping construction and modification API that support annotation using <see cref="T:System.Data.Entity.Edm.Common.DataModelAnnotation"/> .
Gets the collection of <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbEdmPropertyMapping"/> s that specifies how the association end key properties are mapped to the table.
Gets the collection of <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbColumnCondition"/> s that specifies the constant or null values that columns in <see cref="P:System.Data.Entity.Edm.Db.Mapping.DbAssociationSetMapping.Table"/> must have for this type mapping to apply.
Gets or sets a <see cref="T:System.Data.Entity.Edm.Db.DbTableColumnMetadata"/> value representing the table column which must contain <see cref="P:System.Data.Entity.Edm.Db.Mapping.DbColumnCondition.Value"/> for this condition to hold.
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbEntityContainerMapping"/> s that specifies how the model's entity containers are mapped to the database.
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.EdmProperty"/> instances that defines the mapped property, beginning from a property declared by the mapped entity type and optionally proceeding through properties of complex property result types.
Gets or sets a <see cref="T:System.Data.Entity.Edm.Db.DbTableColumnMetadata"/> value representing the table column to which the entity property is being mapped.
Allows the construction and modification of the mapping of an EDM entity container ( <see cref="T:System.Data.Entity.Edm.EdmEntityContainer"/> ) to a database ( <see cref="T:System.Data.Entity.Edm.Db.DbDatabaseMetadata"/> ).
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbEntitySetMapping"/> s that specifies how the container's entity sets are mapped to the database.
Gets the collection of <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbAssociationSetMapping"/> s that specifies how the container's association sets are mapped to the database.
Allows the construction and modification of the mapping of an EDM entity set ( <see cref="T:System.Data.Entity.Edm.EdmEntitySet"/> ) to a database ( <see cref="T:System.Data.Entity.Edm.Db.DbDatabaseMetadata"/> ).
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbEntityTypeMapping"/> s that specifies how the set's entity types are mapped to the database.
Allows the construction and modification of a complete or partial mapping of an EDM entity type ( <see cref="T:System.Data.Entity.Edm.EdmEntityType"/> ) or type hierarchy to a specific database table ( <see cref="T:System.Data.Entity.Edm.Db.DbTableMetadata"/> ).
Gets or sets a value indicating whether this type mapping applies to <see cref="P:System.Data.Entity.Edm.Db.Mapping.DbEntityTypeMapping.EntityType"/> and all its direct or indirect subtypes ( <code>true</code> ), or only to <see cref="P:System.Data.Entity.Edm.Db.Mapping.DbEntityTypeMapping.EntityType"/> ( <code>false</code> ).
Gets the collection of <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbEdmPropertyMapping"/> s that specifies how the type's properties are mapped to the table.
Gets the collection of <see cref="T:System.Data.Entity.Edm.Db.Mapping.DbColumnCondition"/> s that specifies the constant or null values that columns in <see cref="P:System.Data.Entity.Edm.Db.Mapping.DbEntityTypeMappingFragment.Table"/> must have for this type mapping fragment to apply.
Gets or sets the <see cref="T:System.Data.Entity.Edm.EdmAssociationEnd"/> that represents the 'dependent' end of the constraint; properties from this association end's entity type contribute to the <see cref="P:System.Data.Entity.Edm.EdmAssociationConstraint.DependentProperties"/> collection.
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.EdmProperty"/> instances from the <see cref="P:System.Data.Entity.Edm.EdmAssociationConstraint.DependentEnd"/> of the constraint. The values of these properties are constrained against the primary key values of the remaining, 'principal' association end's entity type.
Gets or sets the <see cref="T:System.Data.Entity.Edm.EdmAssociationEndKind"/> of this association end, which indicates the multiplicity of the end and whether or not it is required.
Allows the construction and modification of an association set in an Entity Data Model (EDM) <see cref="T:System.Data.Entity.Edm.EdmEntityContainer"/> ).
Gets or sets the <see cref="T:System.Data.Entity.Edm.EdmEntitySet"/> that specifies the entity set corresponding to the <see cref="P:System.Data.Entity.Edm.EdmAssociationType.SourceEnd"/> association end for this association set.
Gets or sets the <see cref="T:System.Data.Entity.Edm.EdmEntitySet"/> that specifies the entity set corresponding to the <see cref="P:System.Data.Entity.Edm.EdmAssociationType.TargetEnd"/> association end for this association set.
</summary>
</member>
<!-- Badly formed XML comment ignored for member "T:System.Data.Entity.Edm.EdmAssociationType" -->
Gets or sets the optional constraint that indicates whether the relationship is an independent association (no constraint present) or a foreign key relationship ( <see cref="T:System.Data.Entity.Edm.EdmAssociationConstraint"/> specified).
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.EdmProperty"/> instances that describe the (scalar or complex) properties of the complex type.
Gets all <see cref="T:System.Data.Entity.Edm.EdmEntityContainerItem"/> s declared within the namspace. Includes <see cref="T:System.Data.Entity.Edm.EdmAssociationSet"/> s and <see cref="T:System.Data.Entity.Edm.EdmEntitySet"/> s.
Gets or sets the collection of <see cref="T:System.Data.Entity.Edm.EdmProperty"/> s that indicates which properties from the <see cref="P:System.Data.Entity.Edm.EdmEntityType.DeclaredProperties"/> collection are part of the entity key.
Gets or sets the optional collection of <see cref="T:System.Data.Entity.Edm.EdmNavigationProperty"/> s that specifies the navigation properties declared by the entity type.
Gets all <see cref="T:System.Data.Entity.Edm.EdmNamespaceItem"/> s declared within the namspace. Includes <see cref="T:System.Data.Entity.Edm.EdmAssociationType"/> s, <see cref="T:System.Data.Entity.Edm.EdmComplexType"/> s, <see cref="T:System.Data.Entity.Edm.EdmEntityType"/> s.
Gets or sets the <see cref="T:System.Data.Entity.Edm.EdmAssociationEnd"/> that specifies which association end is the 'destination' end of the navigation and produces the navigation property result.
Retrieves the EdmPrimitiveType instance with the <see cref="T:System.Data.Entity.Edm.EdmPrimitiveTypeKind"/> corresponding to the specified <paramref name="primitiveTypeName"/> value, if any.
</summary>
<param name="primitiveTypeName"> The name of the primitive type instance to retrieve </param>
<param name="primitiveType"> The EdmPrimitiveType with the specified name, if successful; otherwise <c>null</c> . </param>
<returns> <c>true</c> if the given name corresponds to an EDM primitive type name; otherwise <c>false</c> . </returns>
Gets an <see cref="T:System.Data.Entity.Edm.EdmPrimitiveTypeKind"/> value that indicates which Entity Data Model (EDM) primitive type this type represents.
Allows the construction and modification of additional constraints that can be applied to a specific use of a primitive type in an Entity Data Model (EDM) item. See <see cref="T:System.Data.Entity.Edm.EdmTypeReference"/> .
Gets or sets an optional value indicating whether the referenced type should be considered to have its intrinsic maximum length, rather than a specific value.
Gets or sets an <see cref="T:System.Data.Entity.Edm.EdmCollectionKind"/> value that indicates which collection semantics - if any - apply to the property.
Enumerates all <see cref="T:System.Data.Entity.Edm.EdmStructuralMember"/> s declared or inherited by an <see cref="T:System.Data.Entity.Edm.EdmStructuralType"/> .
Allows the construction and modification of a specific use of a type in an Entity Data Model (EDM) item. See <see cref="P:System.Data.Entity.Edm.EdmProperty.PropertyType"/> for examples.
Gets or sets a value indicating the collection rank of the type reference. A collection rank greater than zero indicates that the type reference represents a collection of its referenced <see cref="P:System.Data.Entity.Edm.EdmTypeReference.EdmType"/> .
Gets or sets an optional <see cref="T:System.Data.Entity.Edm.EdmPrimitiveTypeFacets"/> instance that applies additional constraints to a referenced primitive type.
</summary>
<remarks>
Accessing this property forces the creation of an EdmPrimitiveTypeFacets value if no value has previously been set. Use <see cref="P:System.Data.Entity.Edm.EdmTypeReference.HasFacets"/> to determine whether or not this property currently has a value.
Gets a value indicating whether the <see cref="P:System.Data.Entity.Edm.EdmTypeReference.PrimitiveTypeFacets"/> property of this type reference has been assigned an <see cref="T:System.Data.Entity.Edm.EdmPrimitiveTypeFacets"/> value with at least one facet value specified.
Indicates whether this type reference represents a collection of its referenced <see cref="P:System.Data.Entity.Edm.EdmTypeReference.EdmType"/> (when <see cref="P:System.Data.Entity.Edm.EdmTypeReference.CollectionRank"/> is greater than zero) or not.
Indicates whether the <see cref="P:System.Data.Entity.Edm.EdmTypeReference.EdmType"/> property of this type reference currently refers to an <see cref="T:System.Data.Entity.Edm.EdmComplexType"/> , is not a collection type, and does not have primitive facet values specified.
Gets the <see cref="T:System.Data.Entity.Edm.EdmComplexType"/> currently referred to by this type reference, or <code>null</code> if the type reference is a collection type or does not refer to a complex type.
Indicates whether the <see cref="P:System.Data.Entity.Edm.EdmTypeReference.EdmType"/> property of this type reference currently refers to an <see cref="T:System.Data.Entity.Edm.EdmPrimitiveType"/> and is not a collection type.
Gets the <see cref="T:System.Data.Entity.Edm.EdmPrimitiveType"/> currently referred to by this type reference, or <code>null</code> if the type reference is a collection type or does not refer to a primitive type.
Contains constant values that apply to the EDM model, regardless of source (for CSDL specific constants see <see cref="T:System.Data.Entity.Edm.Parsing.Xml.Internal.Csdl.CsdlConstants"/> ).
Parsing code taken from System.dll's System.CodeDom.Compiler.CodeGenerator.IsValidLanguageIndependentIdentifier(string) method to avoid LinkDemand needed to call this method
An end element was not given, and cannot be inferred because there is no EntityContainerEntitySets that are the correct type to be used as an EntitySet.
Serializes an <see cref="T:System.Data.Entity.Edm.EdmModel"/> that conforms to the restrictions of a single CSDL schema file to an XML writer. The model to be serialized must contain a single <see cref="T:System.Data.Entity.Edm.EdmNamespace"/> and a single <see cref="T:System.Data.Entity.Edm.EdmEntityContainer"/> .
Serialize the <see cref="T:System.Data.Entity.Edm.EdmModel"/> to the XmlWriter.
</summary>
<param name="model"> The EdmModel to serialize, mut have only one <see cref="T:System.Data.Entity.Edm.EdmNamespace"/> and one <see cref="T:System.Data.Entity.Edm.EdmEntityContainer"/> </param>
<param name="xmlWriter"> The XmlWriter to serialize to </param>
Returns true if the given two ends are similar - the relationship type that this ends belongs to is the same and the entity set refered by the ends are same and they are from the same role
Resolves the given property names to the property in the item Also checks whether the properties form the key for the given type and whether all the properties are nullable or not
</summary>
<param name = "roleProperties"> </param>
<param name = "roleElement"> </param>
<param name = "isKeyProperty"> </param>
<param name = "areAllPropertiesNullable"> </param>
Return true if the entityType is a subtype of any entity type in the dictionary keys, and return the corresponding entry EntitySet value. Otherwise return false.
Gets or sets the database initialization strategy. The database initialization strategy is called when <see cref="T:System.Data.Entity.DbContext"/> instance
is initialized from a <see cref="T:System.Data.Entity.Infrastructure.DbCompiledModel"/>. The strategy can optionally check for database existence, create a new database, and
seed the database with data.
The default strategy is an instance of <see cref="T:System.Data.Entity.CreateDatabaseIfNotExists`1"/>.
</summary>
<typeparam name="TContext">The type of the context.</typeparam>
Common code for generic and non-generic string Include.
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.DbExtensions.Include``2(System.Linq.IQueryable{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}})" -->
Enumerates the query such that for server queries such as those of <see cref="T:System.Data.Entity.DbSet`1"/>, <see cref="T:System.Data.Objects.ObjectSet`1"/>,
<see cref="T:System.Data.Objects.ObjectQuery`1"/>, and others the results of the query will be loaded into the associated <see cref="T:System.Data.Entity.DbContext"/>,
<see cref="T:System.Data.Objects.ObjectContext"/> or other cache on the client.
This is equivalent to calling ToList and then throwing away the list without the overhead of actually creating the list.
Returns an <see cref="T:System.ComponentModel.BindingList`1"/> implementation that stays in sync with the given <see cref="T:System.Collections.ObjectModel.ObservableCollection`1"/>.
</summary>
<typeparam name="T">The element type.</typeparam>
<param name="source">The collection that the binding list will stay in sync with.</param>
DbModelBuilder is used to map CLR classes to a database schema.
This code centric approach to building an Entity Data Model (EDM) model is known as 'Code First'.
</summary>
<remarks>
DbModelBuilder is typically used to configure a model by overriding <see cref="M:System.Data.Entity.DbContext.OnModelCreating(System.Data.Entity.DbModelBuilder)"/>.
You can also use DbModelBuilder independently of DbContext to build a model and then construct a
<see cref="T:System.Data.Entity.DbContext"/> or <see cref="T:System.Data.Objects.ObjectContext"/>.
The recommended approach, however, is to use OnModelCreating in <see cref="T:System.Data.Entity.DbContext"/> as
the workflow is more intuitive and takes care of common tasks, such as caching the created model.
Types that form your model are registered with DbModelBuilder and optional configuration can be
performed by applying data annotations to your classes and/or using the fluent style DbModelBuilder
API.
When the Build method is called a set of conventions are run to discover the initial model.
These conventions will automatically discover aspects of the model, such as primary keys, and
will also process any data annotations that were specified on your classes. Finally
any configuration that was performed using the DbModelBuilder API is applied.
Configuration done via the DbModelBuilder API takes precedence over data annotations which
in turn take precedence over the default conventions.
An internal interface implemented by <see cref="T:System.Data.Entity.Infrastructure.DbQuery`1"/> and <see cref="T:System.Data.Entity.Infrastructure.DbQuery"/> that allows access to
Finds an entity with the given primary key values.
If an entity with the given primary key values exists in the context, then it is
returned immediately without making a request to the store. Otherwise, a request
is made to the store for an entity with the given primary key values and this entity,
if found, is attached to the context and returned. If no entity is found in the
context or the store, then null is returned.
</summary>
<remarks>
The ordering of composite key values is as defined in the EDM, which is in turn as defined in
the designer, by the Code First fluent API, or by the DataMember attribute.
</remarks>
<param name="keyValues">The values of the primary key for the entity to be found.</param>
<returns>The entity found, or null.</returns>
<exception cref="T:System.InvalidOperationException">Thrown if multiple entities exist in the context with the primary key values given.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the type of entity is not part of the data model for this context.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the types of the key values do not match the types of the key values for the entity type to be found.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the context has been disposed.</exception>
Finds an entity with the given primary key values.
If an entity with the given primary key values exists in the context, then it is
returned immediately without making a request to the store. Otherwise, a request
is made to the store for an entity with the given primary key values and this entity,
if found, is attached to the context and returned. If no entity is found in the
context or the store, then null is returned.
</summary>
<remarks>
The ordering of composite key values is as defined in the EDM, which is in turn as defined in
the designer, by the Code First fluent API, or by the DataMember attribute.
</remarks>
<param name="keyValues">The values of the primary key for the entity to be found.</param>
<returns>The entity found, or null.</returns>
<exception cref="T:System.InvalidOperationException">Thrown if multiple entities exist in the context with the primary key values given.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the type of entity is not part of the data model for this context.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the types of the key values do not match the types of the key values for the entity type to be found.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the context has been disposed.</exception>
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbMemberEntry"/> from information in the given <see cref="P:System.Data.Entity.Infrastructure.DbMemberEntry.InternalMemberEntry"/>.
This method will create an instance of the appropriate subclass depending on the metadata contained
in the InternalMemberEntry instance.
</summary>
<param name="internalMemberEntry">The internal member entry.</param>
Collection of <see cref="T:System.Data.Entity.Validation.DbValidationError"/> objects. Never null. If the entity is valid the collection will be empty.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbCollectionEntry"/> from information in the given <see cref="T:System.Data.Entity.Internal.InternalCollectionEntry"/>.
Use this method in preference to the constructor since it may potentially create a subclass depending on
the type of member represented by the InternalCollectionEntry instance.
Gets the <see cref="T:System.Data.Entity.Internal.InternalCollectionEntry"/> backing this object as an <see cref="P:System.Data.Entity.Infrastructure.DbCollectionEntry.InternalMemberEntry"/>.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbMemberEntry`2"/> from information in the given <see cref="P:System.Data.Entity.Infrastructure.DbMemberEntry`2.InternalMemberEntry"/>.
This method will create an instance of the appropriate subclass depending on the metadata contained
in the InternalMemberEntry instance.
</summary>
<param name="internalMemberEntry">The internal member entry.</param>
Collection of <see cref="T:System.Data.Entity.Validation.DbValidationError"/> objects. Never null. If the entity is valid the collection will be empty.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbCollectionEntry`2"/> from information in the given <see cref="T:System.Data.Entity.Internal.InternalCollectionEntry"/>.
Use this method in preference to the constructor since it may potentially create a subclass depending on
the type of member represented by the InternalCollectionEntry instance.
Gets the underlying <see cref="T:System.Data.Entity.Internal.InternalCollectionEntry"/> as an <see cref="P:System.Data.Entity.Infrastructure.DbCollectionEntry`2.InternalMemberEntry"/>.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbPropertyEntry"/> from information in the given <see cref="T:System.Data.Entity.Internal.InternalPropertyEntry"/>.
Use this method in preference to the constructor since it may potentially create a subclass depending on
the type of member represented by the InternalCollectionEntry instance.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbComplexPropertyEntry`2"/> from information in the given <see cref="T:System.Data.Entity.Internal.InternalPropertyEntry"/>.
Use this method in preference to the constructor since it may potentially create a subclass depending on
the type of member represented by the InternalCollectionEntry instance.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbPropertyEntry`2"/> from information in the given <see cref="P:System.Data.Entity.Infrastructure.DbPropertyEntry`2.InternalPropertyEntry"/>.
Use this method in preference to the constructor since it may potentially create a subclass depending on
the type of member represented by the InternalCollectionEntry instance.
Gets the underlying <see cref="P:System.Data.Entity.Infrastructure.DbPropertyEntry`2.InternalPropertyEntry"/> as an <see cref="P:System.Data.Entity.Infrastructure.DbPropertyEntry`2.InternalMemberEntry"/>.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbComplexPropertyEntry"/> from information in the given <see cref="T:System.Data.Entity.Internal.InternalPropertyEntry"/>.
Use this method in preference to the constructor since it may potentially create a subclass depending on
the type of member represented by the InternalCollectionEntry instance.
Creates a new instance representing a given <see cref="T:System.Data.Entity.DbContext"/> type. A <see cref="T:System.Data.Entity.Infrastructure.DbProviderInfo"/>
can be supplied in order to override the default determined provider used when constructing
the underlying EDM model.
</summary>
<param name="contextType">The type deriving from <see cref="T:System.Data.Entity.DbContext"/>.</param>
<param name="modelProviderInfo">A <see cref="T:System.Data.Entity.Infrastructure.DbProviderInfo"/> specifying the underlying ADO.NET provider to target.</param>
Validates this <see cref="T:System.Data.Entity.Infrastructure.DbEntityEntry"/> instance and returns validation result.
</summary>
<returns>
Entity validation result. Possibly null if
<see cref="M:System.Data.Entity.DbContext.ValidateEntity(System.Data.Entity.Infrastructure.DbEntityEntry,System.Collections.Generic.IDictionary{System.Object,System.Object})"/> method is overridden.
Validates this <see cref="T:System.Data.Entity.Infrastructure.DbEntityEntry`1"/> instance and returns validation result.
</summary>
<returns>
Entity validation result. Possibly null if
<see cref="M:System.Data.Entity.DbContext.ValidateEntity(System.Data.Entity.Infrastructure.DbEntityEntry,System.Collections.Generic.IDictionary{System.Object,System.Object})"/> method is overridden.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbReferenceEntry"/> from information in the given <see cref="T:System.Data.Entity.Internal.InternalReferenceEntry"/>.
Use this method in preference to the constructor since it may potentially create a subclass depending on
the type of member represented by the InternalCollectionEntry instance.
Gets the <see cref="T:System.Data.Entity.Internal.InternalReferenceEntry"/> backing this object as an <see cref="P:System.Data.Entity.Infrastructure.DbReferenceEntry.InternalMemberEntry"/>.
Creates a <see cref="T:System.Data.Entity.Infrastructure.DbReferenceEntry`2"/> from information in the given <see cref="T:System.Data.Entity.Internal.InternalReferenceEntry"/>.
Use this method in preference to the constructor since it may potentially create a subclass depending on
the type of member represented by the InternalCollectionEntry instance.
Gets the underlying <see cref="T:System.Data.Entity.Internal.InternalReferenceEntry"/> as an <see cref="P:System.Data.Entity.Infrastructure.DbReferenceEntry`2.InternalMemberEntry"/>.
Creates a new connection factory with empty (default) DatabaseDirectory and BaseConnectionString
properties.
</summary>
<param name = "providerInvariantName">The provider invariant name that specifies the version of SQL Server Compact Edition that should be used.</param>
An <see cref="T:System.Data.Entity.Internal.EagerInternalContext"/> is an <see cref="T:System.Data.Entity.Internal.InternalContext"/> where the <see cref="P:System.Data.Entity.Internal.EagerInternalContext.ObjectContext"/>
instance that it wraps is set immediately at construction time rather than being created lazily. In this case
the internal context may or may not own the <see cref="P:System.Data.Entity.Internal.EagerInternalContext.ObjectContext"/> instance but will only dispose it
Creates a new temporary <see cref="P:System.Data.Entity.Internal.InternalContext.ObjectContext"/> based on the same metadata and connection as the real
<see cref="P:System.Data.Entity.Internal.InternalContext.ObjectContext"/> and sets it as the context to use DisposeTempObjectContext is called.
This allows this internal context and its DbContext to be used for transient operations
such as initializing and seeding the database, after which it can be thrown away.
This isolates the real <see cref="P:System.Data.Entity.Internal.InternalContext.ObjectContext"/> from any changes made and and saves performed.
Gets the underlying <see cref="T:System.Data.Objects.ObjectStateEntry"/> for the given entity, or returns null if the entity isn't tracked by this context.
Constructs an <see cref="T:System.Data.Entity.Internal.EagerInternalContext"/> for an already existing <see cref="P:System.Data.Entity.Internal.EagerInternalContext.ObjectContext"/>.
Returns the underlying <see cref="P:System.Data.Entity.Internal.EagerInternalContext.ObjectContext"/> without causing the underlying database to be created
or the database initialization strategy to be executed.
This is used to get a context that can then be used for database creation/initialization.
Initializes a new instance of the <see cref="T:System.Data.Entity.Internal.ClonedPropertyValues"/> class by copying
values from the given dictionary.
</summary>
<param name="original">The dictionary to clone.</param>
<param name="valuesRecord">If non-null, then the values for the new dictionary are taken from this record rather than from the original dictionary.</param>
An implementation of <see cref="T:System.Data.Entity.Internal.IPropertyValuesItem"/> for an item in a <see cref="T:System.Data.Entity.Internal.ClonedPropertyValues"/>.
An implementation of <see cref="T:System.Data.Entity.Internal.IPropertyValuesItem"/> for an item in a <see cref="T:System.Data.Entity.Internal.DbDataRecordPropertyValues"/>.
Base class for <see cref="T:System.Data.Entity.Internal.InternalCollectionEntry"/> and <see cref="T:System.Data.Entity.Internal.InternalReferenceEntry"/>
containing common code for collection and reference navigation property entries.
A <see cref="T:System.Data.Entity.Internal.LazyInternalContext"/> is a concrete <see cref="T:System.Data.Entity.Internal.InternalContext"/> type that will lazily create the
underlying <see cref="P:System.Data.Entity.Internal.LazyInternalContext.ObjectContext"/> when needed. The <see cref="P:System.Data.Entity.Internal.LazyInternalContext.ObjectContext"/> created is owned by the
internal context and will be disposed when the internal context is disposed.
Constructs a <see cref="T:System.Data.Entity.Internal.LazyInternalContext"/> for the given <see cref="T:System.Data.Entity.DbContext"/> owner that will be initialized
Returns the underlying <see cref="P:System.Data.Entity.Internal.LazyInternalContext.ObjectContext"/> without causing the underlying database to be created
or the database initialization strategy to be executed.
This is used to get a context that can then be used for database creation/initialization.
Creates an immutable, cacheable representation of the model defined by this builder.
This model can be used to create an <see cref="P:System.Data.Entity.Internal.LazyInternalContext.ObjectContext"/> or can be passed to a <see cref="T:System.Data.Entity.DbContext"/>
constructor to create a <see cref="T:System.Data.Entity.DbContext"/> for this model.
Gets or sets a value indicating whether lazy loading is enabled.
If the <see cref="P:System.Data.Entity.Internal.LazyInternalContext.ObjectContext"/> exists, then this property acts as a wrapper over the flag stored there.
If the <see cref="P:System.Data.Entity.Internal.LazyInternalContext.ObjectContext"/> has not been created yet, then we store the value given so we can later
use it when we create the <see cref="P:System.Data.Entity.Internal.LazyInternalContext.ObjectContext"/>. This allows the flag to be changed, for example in
a DbContext constructor, without it causing the <see cref="P:System.Data.Entity.Internal.LazyInternalContext.ObjectContext"/> to be created.
A wrapping query provider that performs expression transformation and then delegates
to the <see cref="T:System.Data.Objects.ObjectQuery"/> provider. The <see cref="T:System.Linq.IQueryable"/> objects returned are always instances
of <see cref="T:System.Data.Entity.Infrastructure.DbQuery`1"/>. This provider is associated with generic <see cref="T:System.Data.Entity.Infrastructure.DbQuery`1"/> objects.
Wraps the given <see cref="T:System.Data.Objects.ObjectQuery"/> as a <see cref="T:System.Data.Entity.Internal.Linq.InternalQuery`1"/> where T is determined
Replaces a <see cref="T:System.Data.Entity.Infrastructure.DbQuery"/> or <see cref="T:System.Data.Entity.Infrastructure.DbQuery`1"/> property with a constant expression
for the underlying <see cref="T:System.Data.Objects.ObjectQuery"/>.
</summary>
<param name="node">The node to replace.</param>
<returns>A new node, which may have had the replacement made.</returns>
Takes a <see cref="T:System.Data.Entity.Infrastructure.DbQuery`1"/> or <see cref="T:System.Data.Entity.Infrastructure.DbQuery"/> and creates an expression
for the underlying <see cref="T:System.Data.Objects.ObjectQuery`1"/>.
Takes a <see cref="T:System.Data.Entity.Infrastructure.DbQuery`1"/> or <see cref="T:System.Data.Entity.Infrastructure.DbQuery"/> and extracts the underlying <see cref="T:System.Data.Objects.ObjectQuery`1"/>.
Finds an entity with the given primary key values.
If an entity with the given primary key values exists in the context, then it is
returned immediately without making a request to the store. Otherwise, a request
is made to the store for an entity with the given primary key values and this entity,
if found, is attached to the context and returned. If no entity is found in the
context or the store, then null is returned.
</summary>
<remarks>
The ordering of composite key values is as defined in the EDM, which is in turn as defined in
the designer, by the Code First fluent API, or by the DataMember attribute.
</remarks>
<param name="keyValues">The values of the primary key for the entity to be found.</param>
<returns>The entity found, or null.</returns>
<exception cref="T:System.InvalidOperationException">Thrown if multiple entities exist in the context with the primary key values given.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the type of entity is not part of the data model for this context.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the types of the key values do not match the types of the key values for the entity type to be found.</exception>
<exception cref="T:System.InvalidOperationException">Thrown if the context has been disposed.</exception>
Builds the validator for a given <paramref name="complexType"/> and the corresponding
<paramref name="clrType"/>.
</summary>
<param name="clrType">The CLR type that corresponds to the EDM complex type.</param>
<param name="complexType">The EDM complex type that type level validation is built for.</param>
<returns>A <see cref="T:System.Data.Entity.Internal.Validation.ComplexTypeValidator"/> for the given complex type. May be null if no validation specified.</returns>
Allows derived configuration classes for entities and complex types to be registered with a <see cref="T:System.Data.Entity.DbModelBuilder"/>.
</summary>
<remarks>
Derived configuration classes are created by deriving from <see cref="T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration"/>
or <see cref="T:System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration"/> and using a type to be included in the model as the generic
parameter.
Configuration can be performed without creating derived configuration classes via the Entity and ComplexType
methods on <see cref="T:System.Data.Entity.DbModelBuilder"/>.
Adds an <see cref="T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration"/> to the <see cref="T:System.Data.Entity.DbModelBuilder"/>.
Only one <see cref="T:System.Data.Entity.ModelConfiguration.Configuration.Types.EntityTypeConfiguration"/> can be added for each type in a model.
</summary>
<typeparam name="TEntityType">The entity type being configured.</typeparam>
<param name="entityTypeConfiguration">The entity type configuration to be added.</param>
<returns>The same ConfigurationRegistrar instance so that multiple calls can be chained.</returns>
Adds an <see cref="T:System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration"/> to the <see cref="T:System.Data.Entity.DbModelBuilder"/>.
Only one <see cref="T:System.Data.Entity.ModelConfiguration.Configuration.Types.ComplexTypeConfiguration"/> can be added for each type in a model.
</summary>
<typeparam name="TComplexType">The complex type being configured.</typeparam>
<param name="complexTypeConfiguration">The complex type configuration to be added</param>
<returns>The same ConfigurationRegistrar instance so that multiple calls can be chained.</returns>
Configures the column to allow the maximum length supported by the database provider.
</summary>
<returns>The same StringColumnConfiguration instance so that multiple calls can be chained.</returns>
</member>
<!-- Badly formed XML comment ignored for member "M:System.Data.Entity.ModelConfiguration.Configuration.StringColumnConfiguration.HasMaxLength(System.Nullable{System.Int32})" -->
Convention to process instances of <see cref="T:System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute"/> found on properties in the model.
Convention to process instances of <see cref="T:System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute"/> found on foreign key properties in the model.
Convention to process instances of <see cref="T:System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute"/> found on properties in the model.
Convention to process instances of <see cref="T:System.ComponentModel.DataAnnotations.RequiredAttribute"/> found on navigation properties in the model.
Convention to convert any data types that were explicitly specified, via data annotations or <see cref="T:System.Data.Entity.DbModelBuilder"/> API,
to be lower case. The default SqlClient provider is case sensitive and requires data types to be lower case. This convention
allows the <see cref="T:System.ComponentModel.DataAnnotations.ColumnAttrbiute"/> and <see cref="T:System.Data.Entity.DbModelBuilder"/> API to be case insensitive.
Convention to process instances of <see cref="T:System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute"/> found on navigation properties in the model.
Allows advanced configuration related to how this entity type is mapped to the database schema.
By default, any configuration will also apply to any type derived from this entity type.
Derived types can be configured via the overload of Map that configures a derived type or
by using an EntityTypeConfiguration for the derived type.
The properties of an entity can be split between multiple tables using multiple Map calls.
Calls to Map are additive, subsequent calls will not override configuration already preformed via Map.
</summary>
<param name="entityMappingConfigurationAction">An action that performs configuration against an <see cref="T:System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration`1"/>.</param>
<returns>The same EntityTypeConfiguration instance so that multiple calls can be chained.</returns>
Allows advanced configuration related to how a derived entity type is mapped to the database schema.
Calls to Map are additive, subsequent calls will not override configuration already preformed via Map.
</summary>
<typeparam name="TDerived">The derived entity type to be configured.</typeparam>
<param name="derivedTypeMapConfigurationAction">An action that performs configuration against an <see cref="T:System.Data.Entity.ModelConfiguration.Configuration.EntityMappingConfiguration`1"/>.</param>
<returns>The same EntityTypeConfiguration instance so that multiple calls can be chained.</returns>