migrate.exe, on a build server, wants to "start over" with migrations

Cross posted at StackOverflow. Part of our automated build process involves running migrate.exe to update test databases to the latest version of the database. The process is relatively simple:...

Id #2883 | Release: None | Updated: Thu at 4:11 PM by tlmii | Created: Thu at 4:11 PM by tlmii

RenameColumn gives Cannot convert lambda expression to type object because it is not a delegate type in c#

In VB.Net i can adjust my migration ( which does an AddColumn and DropColumn when renaming properties) like this: RenameColumn("dbo.InvoiceLines", "Invoice_InvoiceID", "OrderId", Function(d) d.Int(...

Id #2882 | Release: None | Updated: Tue at 10:01 AM by NicoJuicy | Created: Tue at 10:00 AM by NicoJuicy

Add VS2015 support to Power Tools VSIX

EF power tools are not listed as an extension for Visual Studio 2015. The VSIX needs to be updated with <VisualStudio Version-"14.0"> <Edition>Pro</Edition> </VisualStudio> I've been using a...

Id #2881 | Release: None | Updated: Feb 5 at 6:33 PM by jlerman | Created: Feb 5 at 6:33 PM by jlerman

Foreign Key error on code first migration

I'm having a hard time getting some foreign keys to generate correctly in a migration. This is what I'm trying to achieve (with some fields omitted for brevity): My classes/Entities are as yo...

Id #2880 | Release: None | Updated: Feb 1 at 11:46 AM by bg100 | Created: Feb 1 at 11:46 AM by bg100

Issues with : Migration, FK removed and generated SQL.

Hi guys. Here is my problem, first time i met this kind of behaviour in entity framework 6.1.3 I just made a short solution to show you the problem. Repro step: In your project, create 2 cl...

Id #2879 | Release: None | Updated: Mon at 10:46 AM by Chris_13 | Created: Jan 29 at 7:42 PM by Chris_13

Visual Studio 2015 crashes with EF 6.1.3

I've a VB solution in VS 2015 Community Update 1, .Net 4.6.1 on Windows 8.1 64 bit with a Windows form executable project and class library project. In the class library project i defined an entit...

Id #2878 | Release: None | Updated: Jan 29 at 11:53 AM by Stefano66 | Created: Jan 28 at 1:23 PM by Stefano66

Generated SQL depends on the order of property setters in the materialized type

We have the following model in EF v6.1.3: Note that VW_MACSKA_VALIDITY is a view, and the association between VW_MACSKA_VALIDITY and MACSKA is only a conceptual level association. The followin...

Id #2877 | Release: None | Updated: Jan 31 at 9:35 AM by conwid | Created: Jan 27 at 5:19 PM by stargater

Custom HistoryContext causes Get-Migrations to fail

Cross-posted at Stack Overflow. I'm using Oracle's Entity Framework 12.1.22 (6.121.2.0) and Entity Framework 6.0.0. I have a custom HistoryContext that ensures the __MigrationHistory table is i...

Id #2875 | Release: None | Updated: Jan 25 at 4:38 PM by MattKnowles | Created: Jan 25 at 4:38 PM by MattKnowles

Entify Framework 6.0.0.0 The incoming request has too many parameters. The server supports a maximum of 2100 parameters

Unable to generate the model because of the following exception: 'System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner ex...

Id #2874 | Release: None | Updated: Jan 20 at 5:10 AM by vijayiqr | Created: Jan 20 at 5:10 AM by vijayiqr

WCF-EF5 - Error due to the service endpoint binding not using the HTTP protocol or HTTP request context being aborted by the server

I am using Entity Framework 5 and WCF data service. I have the following method in the service1.cs public IList<Employee> GetEmployee() { using (ChinookEntities DBEntities = new Chin...

Id #2873 | Release: None | Updated: Jan 19 at 2:38 PM by ExplorerJK | Created: Jan 19 at 2:38 PM by ExplorerJK