Setting the initializer to null
will skip the model compatibility check.
Database.SetInitializer<MyContext>(null);
More Related Contents:
- What difference does .AsNoTracking() make?
- Linq: help me to make this work
- EntityFramework – contains query of composite key
- MetadataException: Unable to load the specified metadata resource
- How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
- The cast to value type ‘Int32’ failed because the materialized value is null
- EntityType has no key defined error
- Insert data using Entity Framework model
- How to get property change notifications with EF 4.x DbContext generator
- Entity Framework with XML Files [closed]
- EF 6 – How to correctly perform parallel queries
- Problems using Entity Framework 6 and SQLite
- ef4 cause Circular reference in web service
- Entity framework raw SQL Query
- Finding the reason for DBUpdateException
- DbContext discard changes without disposing
- Entity Framework 4: How to find the primary key?
- Max return value if empty query
- Group by with multiple columns using lambda
- How to do an “in” query in entity framework?
- How to Specify Primary Key Name in EF-Code-First
- Parallel doesnt work with Entity Framework
- Unable to find the requested .Net Framework Data Provider. It may not be installed
- big issue in converting string to datetime using linq-to-entities
- Entity Framework: Duplicate Records in Many-to-Many relationship
- Mixing Fluent API and DataAnnotations in EF code first
- Keep Getting ‘The LINQ expression node type ‘Invoke’ is not supported in LINQ to Entities’ Exception
- Entity Framework Multiple Object Contexts
- Repository Pattern, POCO, and Business Entities
- Net Core: Using OData in Onion Architecture, Convert Query Parameters Into Linq