zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

19 results in tag: migration

How do I migrate a database using Entity Framework 4.2?

I'm just starting to dive into ASP.net MVC3. I come from a Django background. One of the things I love about Django, is the add-on called "South". It lets me modify my Models in code, and then I run a command, it figures out what has changed, and it updat...
asp.net-mvc-3 c# database entity-framework migration
asked by mpen

Only in a single VS project does the Package Manager Console Enable-Migrations CommandNotFoundException occur.

I tried to run the command 'Enable-Migrations' in a new project and I got the message:...PM> Enable-Migrations The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the na...
entity-framework migration
asked by Eduardo Brites

No initial create with Entity Framework migrations

I'm trying to get Entity framework migrations working. I've enabled code first migrations, its created a migrations folder, config file and the mig history table, but no initial create. Am i missing a step? This is a new db created by EF (4.3.1).
entity-framework migration
asked by newbie_86

Set StartUp Project parameter for Entity Framework migrations

When using EF 4.3.1 migrations every time i need to add a migration or update database i have to use the StartUpProject parameter. Can I set this somewhere so I don't have to keep doing this? I don't want to set my data project as the start up project. My...
entity-framework migration
asked by newbie_86

Migrations in Entity Framework in a collaborative environment

We have multiple developers working on a project that uses Entity Framework 5.0. Every developer uses his own local SQL 2012 database so he can develop and test without impeding others....At first, we used a hybrid of automatic migrations and code-based m...
c# collaboration ef-migrations entity-framework migration
asked by JulianR

How can I disable code first migrations

I have a code-first entity model in EF5. But I want to manage the database changes manually -- I do not want EF to modify my existing database and all its data. But when I make parallel changes in the EF mapping and in the database, EF refuses to operate ...
code-first entity-framework migration
asked by Stan Hargrove

EF code first - Model compatibility cannot be checked because the database does not contain model metadata

I have enabled automatic migrations. Then, I deleted my whole db. Next, i executed ...Update-database... from command console, and it recreated my db. Then, I started my application only to see this error:...Model compatibility cannot be checked because t...
entity-framework migration
asked by ojek

Entity Framework MigrationSqlGenerator for SQLite

is there a MigrationSqlGenerator for SQLite to use with entity framework? I only found one from devart which is commercial....No MigrationSqlGenerator found for provider 'System.Data.SQLite'. Use the SetSqlGenerator method in the target migrations confi...
.net c# entity-framework migration sqlite
asked by masterchris_99

Entity framework migration not detecting any changes

I was running successfully ...Entity framework 6.0.0-alpha3... until today. Today I decided to update to ...Entity framework 6.0.0-rc1..., and as specified ...here... in order to run my migrations I need to remove all the previous migrations made by ...ef...
asp.net-mvc c# entity-framework migration
asked by ojek

Entity framework migrations - generate sql script of current database model

I am trying to generate sql script that will create a database for me. So far I tried this:...Update-Database -Script -SourceMigration: $InitialDatabase Update-Database -Script -SourceMigration:0 ...But both of those are giving me scripts that are beggini...
entity-framework migration
asked by ojek

EntityFramework 6 Migrations for both existing and new databases?

In our software, we have a customer base with existing databases. The databases are currently accessed via EntitySpaces, but we'd like to switch to EntityFramework (v6), as EntitySpaces is no longer supported. We'd also like to make use of the migrations ...
c# entity-framework entity-framework-6 entityspaces migration
asked by hoekki

Entity Framework 6 Model First Migration

Desired outcome:...Use model first approach with Entity Framework and allow changes to deployed database/ model to be done automatically based on the changes in the model. Automatic schema difference script generation to allow smooth migrations....Is ther...
ef-model-first entity-framework migration
asked by Levent

Entity Framework rollback and remove bad migration

I'm using EF 6.0 for my project in C# with manual migrations and updates. I have about 5 migrations on the database, but I realised that the last migration was bad and I don't want it. I know that I can rollback to a previous migration, but when I add a n...
c# entity-framework migration rollback
asked by Martin Brabec

How can I permanently fix the "EdmFunctionAttribute is obsolete" warning, which occurs after upgrading to EF6?

I am getting the warning ..."EdmFunctionAttribute is obsolete"... after I have ...upgraded a ...database first project... from EF4 to EF 6.1.3...:...'System.Data.Entity.Core.Objects.DataClasses.EdmFunctionAttribute' is obsolete: 'This attribute has been...
c# entity-framework-4 entity-framework-6 migration visual-studio
asked by Matt

Visual Studio 2015 RC Entity Framework 6.1.3 Migrations Error

The pasted below error only occurs when the solution has more than one project that references the EntityFramework. When run the "Enable-Migrations" or "Add-Migration", I received the following error:...New-Object : The value supplied is not valid, or the...
.net c# entity-framework-6 migration visual-studio-2015
asked by Hudson Cavazin

Entity Framework Code First Migration in MySql DataBase

I create code first model using entity framework and after install first version to client we found some change in columns of database , I use migration of Entity Framework and you apply all steps of migration bat the data base of client not exist rows of...
c# entity-framework entity-framework-6 migration mysql
asked by Iskandar Enuml

EF Migrations - There is already an object named '' in the database

I am having trouble adding a new table to my database. these are the commands I entered when trying to add the new migration:...Add-Migration AdminSett ...Scaffolding migration 'AdminSett'. The Designer Code for this migration file includes a snapshot o...
c# ef-migrations entity-framework migration
asked by Cathal O 'Donnell

Update-database problem in asp.net MVC application

When i update database in package manager console i have this error...Introducing FOREIGN KEY constraint 'FK_dbo.Appointments_dbo.Users_AppointmentManagerId' on table 'Appointments' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION o...
asp.net asp.net-mvc entity-framework-6 migration
asked by zied ben othman

How to enable migration for EF 6.4 and MySQL C#?

I tried to enable migrations using the command ...Enable-Migrations...But I got the error below, I didn't really understand how to solve it......I installed all the extensions to make it works. ...The error message :...Checking if the context targets an e...
c# ef-migrations entity-framework-6 migration mysql
asked by PierreDuv

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!