No announcements
Found 3390208 threads
-
0 Votes
Migrating tables created by Entity Framework Code First to another (existing) database
When I started the project I started by making the classes then using Entity Framework Code First to create a new database (database A), ...Answered | 3 Replies | 570 Views | Created by Ale Carra - Wednesday, May 11, 2016 6:27 PM | Last reply by Zhanglong Wu - Thursday, May 12, 2016 5:00 AM -
0 Votes
Entity Framework Code First, DropCreateDatabaseIfModelChanges?
Hi magicalclick; The first release of EF Code First does not have a way to keep the data when re-creating the database.Answered | 2 Replies | 4647 Views | Created by magicalclick - Saturday, December 17, 2011 6:03 AM | Last reply by magicalclick - Saturday, December 17, 2011 4:31 PM -
0 Votes
Entity Framework and Code First Development
Hi, You have "code first" (code is your model), "model first" (you start to create a model from which you'll ...Answered | 1 Replies | 2184 Views | Created by Arnab-Roy-Chowdhury1 - Tuesday, November 29, 2011 9:27 AM | Last reply by Patrice Scribe - Tuesday, November 29, 2011 11:46 AM -
0 Votes
Update site with Entity Framework Model First type
By default, model first Entity Framework will create a local database dynamically.Answered | 1 Replies | 3303 Views | Created by ORover - Tuesday, August 13, 2013 2:07 PM | Last reply by MingXu-MSFT - Wednesday, August 14, 2013 8:00 AM -
0 Votes
Entity Framework - switch from database first to model first
You could try to make use of the Entity Framework Tools for Visual Studio to help you generate some initial code to map to the database.Answered | 2 Replies | 856 Views | Created by Barak Ganon - Tuesday, January 12, 2016 10:21 AM | Last reply by Fred Bao - Thursday, January 14, 2016 2:39 AM -
2 Votes
DbUpdateConcurrencyException in Entity Framework Database First
Below are the few points (With respect to your piece of code) on how Entity Framework handles concurrency conflicts.Answered | 5 Replies | 5780 Views | Created by DevePlex - Saturday, April 27, 2013 10:10 AM | Last reply by KoyaKishore - Monday, April 29, 2013 10:10 AM -
0 Votes
The model backing the 'bla' context has changed since the database was created.
Hi aujong, Please try to add the following code on your Fluent API method.Answered | 2 Replies | 2700 Views | Created by aujong - Monday, May 23, 2016 2:13 PM | Last reply by Zhanglong Wu - Tuesday, May 24, 2016 3:01 PM -
0 Votes
Entityframework code first Migration
Code first migrations are intended to cover this scenario.Answered | 6 Replies | 866 Views | Created by beela - Thursday, January 7, 2016 10:15 PM | Last reply by beela - Wednesday, January 13, 2016 8:41 AM -
0 Votes
Manually update SQL database rather than Code First Migrations
Hi Kamango Malinitu, EF Code First approach will look at your DbContext, and discover all the entity collections declared in it (and ...Answered | 1 Replies | 3819 Views | Created by Kamango Malinitu - Tuesday, February 16, 2016 12:17 AM | Last reply by Zhanglong Wu - Wednesday, February 17, 2016 2:03 AM -
0 Votes
update-database not updating new columns of a created table
Hi, If you need to update the database to reflect new changes you made on a table, you need to use the ...Answered | 1 Replies | 3172 Views | Created by Zandi Amir - Sunday, July 17, 2016 11:32 AM | Last reply by Mahmoud Tolba - Sunday, July 17, 2016 12:25 PM -
0 Votes
asp.net mvc4 with ado.net entity framework with code first
No, neither ASP.NET nor MVC4 are required to be able to use Entity Framework with code first or database first.Answered | 1 Replies | 2152 Views | Created by P Narasimha - Saturday, December 6, 2014 11:02 AM | Last reply by Magnus (MM8) - Saturday, December 6, 2014 12:48 PM -
0 Votes
Entity Framework
Here are the new features in Entity Framework 6.0.Answered | 1 Replies | 831 Views | Created by Sulekh K - Tuesday, October 4, 2016 6:36 AM | Last reply by Zhanglong Wu - Wednesday, October 5, 2016 12:58 AM -
1 Votes
Conditional Constraint in Entity Framework Code first approach
> i have two fields called Field1 & Field2, if Field1 value is null Field2 should have value, similarly if Field2 is null Field1 should have value, Please advice how to implement this in ...Answered | 3 Replies | 2977 Views | Created by Kalaivanan Ramaiah - Tuesday, January 23, 2018 1:38 PM | Last reply by Sam GH - Friday, February 8, 2019 7:41 PM -
0 Votes
MVC with entity framework code first
I have one database with two connections strings, note this is a mvc project with entity Framework and code first, what do I have ...Answered | 3 Replies | 1167 Views | Created by Cristinamaria - Sunday, March 10, 2019 5:38 PM | Last reply by Cristinamaria - Tuesday, March 12, 2019 6:15 PM -
0 Votes
SQL to Entity Framework Code First
If it's null (or 0) then it will allow the database to generate a value.Answered | 2 Replies | 725 Views | Created by nixish - Wednesday, May 4, 2016 9:21 PM | Last reply by JesperKP - Sunday, May 8, 2016 10:27 AM -
0 Votes
Entity Framework, database first and default name for DbContext
I think if you delete the connection string named “Entities” in App.config, you are able to modify the name ...Answered | 4 Replies | 2872 Views | Created by knit - Tuesday, February 5, 2013 12:31 AM | Last reply by Alexander Sun - Thursday, February 7, 2013 6:11 AM -
0 Votes
Is Entity Framework Code First suited for this scenario?
Hi Evolution of DataBase design with Code-First was a road block for chosing EF Code First approach, I guess EF team has released ...Answered | 2 Replies | 2969 Views | Created by T. Webster - Tuesday, October 11, 2011 12:41 PM | Last reply by Alan_chen - Friday, October 14, 2011 1:38 AM -
0 Votes
Clustered Index Entity Framework
Hey, Would you be able to share the model that you are creating the database from?Answered | 9 Replies | 4465 Views | Created by engenious - Tuesday, March 3, 2015 12:29 PM | Last reply by Rowan Miller - Friday, June 12, 2015 11:18 PM -
3 Votes
Can Entity Framework handle changes in database table
Consider a standard buisness table Table1 Table1 Field1 Field2 Say in application EF model is generated and an ...Answered | 6 Replies | 13579 Views | Created by jainabhishek77 - Thursday, February 17, 2011 2:55 PM | Last reply by Amar Barge - Wednesday, June 19, 2013 11:26 AM -
0 Votes
Entity Framework Code First - Database creation strategies vs Code first migrations
I like Database first.Answered | 2 Replies | 818 Views | Created by Mrityunjay Learning - Tuesday, December 29, 2015 5:10 AM | Last reply by Matthew LEAN . D - Monday, January 4, 2016 12:20 PM - Items 1 to 20 of 3390208 Next ›
No announcements