No announcements
Found 3670478 threads
-
0 Votes
Unable to persist : Multiple added entities may have the same primary key
Welcome to the All-In-One Code Framework!Answered | 4 Replies | 8667 Views | Created by bigyes - Monday, September 13, 2010 10:12 AM | Last reply by Michael Sun [MSFT] - Wednesday, September 29, 2010 2:08 AM -
2 Votes
Multiple added entities may have the same primary key.
I am working on a large enterprise level application and currently facing the similar issue on multiple screens when multiple entities are being saved in a single ...Answered | 4 Replies | 14434 Views | Created by J. Krush - Friday, November 7, 2014 9:51 AM | Last reply by Jupagose - Monday, December 7, 2015 11:45 AM -
0 Votes
Entity Framework - Primary Key and Foreign Key Namess
However EF doesn't support foreign keys that refer to unique indexes, and not the primary key.Answered | 1 Replies | 1562 Views | Created by Natron61 - Monday, December 30, 2013 3:35 PM | Last reply by davidbaxterbrowne - Monday, December 30, 2013 3:53 PM -
0 Votes
Detecting Violation of PRIMARY KEY constraint in Entity Framework
We will also continue to monitor the Entity Framework forum.Answered | 8 Replies | 7327 Views | Created by Andrew Pierro - Friday, August 3, 2012 2:59 PM | Last reply by Andrew Pierro - Thursday, August 9, 2012 12:36 PM -
0 Votes
Entity Framework 4: is there way that Entity framework can catch error such as duplicated primary key?
Anyway it is good to know there is a way to query base on collection of primary key.Answered | 6 Replies | 5952 Views | Created by JJChen - Wednesday, May 4, 2011 9:39 PM | Last reply by Lars-Erik Aabech - Friday, May 6, 2011 7:36 AM -
0 Votes
Working with table with no primary key in Entity Framework
Hi Raza; Doing what Bob suggest is about the only way to CRUD operations in Entity Framework.Answered | 4 Replies | 6056 Views | Created by Raza Haider - Friday, November 11, 2011 7:39 AM | Last reply by Fernando Soto - MCSD - Thursday, November 17, 2011 3:49 PM -
1 Votes
Weak entity primary key question
Well, the term weak entity is a modeling term that simply means that the primary key of the table is not made up of only columns from the same table (Idef1x calls ...Answered | 5 Replies | 11662 Views | Created by sonofjack3 - Saturday, March 9, 2013 8:33 PM | Last reply by Louis Davidson - Tuesday, March 19, 2013 2:51 AM -
0 Votes
Guid as primary key in entity model
darnold924 But Entity Framework 4.1 should support primary keys of type guid - that's why I wonder what I missing since it doesn't seem to ...Answered | 5 Replies | 8973 Views | Created by M. Knafve - Friday, May 27, 2011 8:22 AM | Last reply by KristoferA - Friday, May 27, 2011 10:46 AM -
1 Votes
Composite Keys and the Entity Framework
Do I understand from this thread that I will face troubles with the Entity Framework because I will have a CompositePrimaryKey?Answered | 19 Replies | 25448 Views | Created by Cory the Code Warrior - Monday, November 30, 2009 8:16 PM | Last reply by The Eagle - Thursday, February 3, 2011 8:29 PM -
0 Votes
Entity Framework Model Update after adding a primary key
However, after the model is updated, the primary key is added into the SSDL, but the CSDL is unchanged, which causes the error 3002.Answered | 4 Replies | 6447 Views | Created by Harish Ranganathan - Saturday, June 5, 2010 2:35 PM | Last reply by Michael Sun [MSFT] - Friday, June 11, 2010 7:53 AM -
0 Votes
Entity Framework: nullable keys and interfaces
For example, ModelBase need not be in your CSDL at all, but the Id property that it declares can still be mapped as the primary key property in all entities that ...Answered | 5 Replies | 9100 Views | Created by Saeed.Taheri - Tuesday, May 4, 2010 4:00 AM | Last reply by Morten Overgaard - Monday, February 7, 2011 7:26 PM -
0 Votes
undo changes in entity framework
Entity Framework maintains an internal collection of all the objects that have been queried by it or added to it.Answered | 7 Replies | 6384 Views | Created by karynch - Tuesday, February 19, 2013 8:00 AM | Last reply by Glenn Condron - Friday, February 22, 2013 1:23 AM -
0 Votes
Create an entity model without primary key
Once you have retrieved that data from the database then it is an actual thing, an Entity, and it needs a primary key so that we can keep track of it.Answered | 10 Replies | 23310 Views | Created by dsy73 - Thursday, August 19, 2010 4:16 AM | Last reply by Colin Blair - Monday, March 14, 2011 9:26 PM -
0 Votes
Clustered Index Entity Framework
We would encourage you to post questions on Stack Overflow using the entity-framework tag.Answered | 9 Replies | 4281 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
entity framework
The use of db.AddToEmps(Em); is still valid in Entity Framework but the new recommended way to add an object to the Emps table is to use db.Emps.AddObject(Em); as stated in the post.Answered | 4 Replies | 2404 Views | Created by bobbyangara - Friday, December 16, 2011 4:28 AM | Last reply by Fernando Soto - MCSD - Saturday, December 17, 2011 2:27 AM -
0 Votes
ADO.NET Entity Framework : Item with the same key has already been added ERROR [Multi threading issue]
You should have a separate context/connection for each thread.Answered | 1 Replies | 5131 Views | Created by Deepak RA0 - Wednesday, August 11, 2010 4:04 AM | Last reply by Julia Kornich - Wednesday, August 11, 2010 7:02 AM -
6 Votes
Delete multiple rows in entity framework
Just using standard Entity Framework functionality here.Answered | 7 Replies | 46471 Views | Created by AnupDG - Tuesday, December 22, 2009 4:57 AM | Last reply by Richard Maxwell - Tuesday, February 21, 2012 8:02 PM -
0 Votes
problems to create an entity-relation between two entities, with a primary-key that have 2 columns
If I understand correctly, just as Cory mentioned, the problem here is same as the one in the thread, Composite Keys and the Entity ...Answered | 4 Replies | 3760 Views | Created by M.Erlinger - Tuesday, December 15, 2009 9:04 PM | Last reply by Michael Sun [MSFT] - Monday, December 21, 2009 6:38 AM -
0 Votes
Entity Framework: Conditional foreign key
I had the same question, and the answer I got was that you couldn't do that with EF V1.0.Answered | 1 Replies | 4431 Views | Created by TNEmp - Monday, March 2, 2009 10:11 AM | Last reply by Ivan.cnw - Tuesday, March 3, 2009 11:44 PM -
0 Votes
Entity framework to support Multiple Databases of same schema
Hi zubairTechy, You can use the same model with two different providers, but you'll need to create another SSDL file for the alternate provider.Answered | 1 Replies | 7063 Views | Created by zubairTechy - Friday, September 14, 2012 6:58 AM | Last reply by Tyler_A - Friday, September 14, 2012 2:28 PM - Items 1 to 20 of 3670478 Next ›
No announcements