No announcements
Found 943386 threads
-
0 Votes
Update Detached entity in EF 6
In EF 6 you can just set the state of the entity to modified and then save it.Answered | 5 Replies | 2326 Views | Created by Ken Taps - Thursday, June 4, 2015 9:29 PM | Last reply by Fred Bao - Wednesday, June 17, 2015 8:00 AM -
0 Votes
Updating detached entities
I believe what you you need is a "ApplyCurrentValues" method on your Interface, which does a deep copy from the detached entity to the actual entity in ...Answered | 4 Replies | 4131 Views | Created by TrippBlunschi - Thursday, July 8, 2010 1:30 PM | Last reply by Michael Sun [MSFT] - Thursday, July 15, 2010 1:30 AM -
0 Votes
Cannot Save Detached Entity to Database
I have a tip for exactly what you are trying to do, check it out: Tip 17 – How to do one step updates with AttachAsModified(..)Answered | 1 Replies | 4171 Views | Created by sisdog - Saturday, May 9, 2009 6:11 AM | Last reply by Alex D James - MSFT - Saturday, May 9, 2009 11:51 PM -
0 Votes
Delete detached entity from one to many relationship
Hi, This behavior is something we would need to add to core EF rather than just Code First so it will not be available in CTP5.Answered | 1 Replies | 5630 Views | Created by ste4cs - Tuesday, November 23, 2010 3:05 PM | Last reply by Rowan Miller - Thursday, November 25, 2010 12:28 AM -
0 Votes
Delete child entity from detached parent
Unfortunately, there is no easy way to achieve what you are trying to do in EF 3.5.Answered | 9 Replies | 6110 Views | Created by John W C - Monday, August 16, 2010 3:25 AM | Last reply by Julia Kornich - Wednesday, August 25, 2010 12:21 AM -
1 Votes
Does EF 6 Allow for Primary Key Updates
EF still doesn't support PK updates through change tracking and SaveChanges() If you want to update a PK in an EF application, you can just use a ...Answered | 5 Replies | 1466 Views | Created by Jim Lutterbach - Sunday, February 23, 2014 2:14 AM | Last reply by Jim Lutterbach - Thursday, February 27, 2014 4:23 AM -
0 Votes
detach entity with multiple subentities
In your derived type, the entities have the same entity key, so you must detach X before reassign Y and Z.Answered | 2 Replies | 5397 Views | Created by Rachel_Dru - Wednesday, January 5, 2011 7:24 AM | Last reply by Alan_chen - Wednesday, January 12, 2011 7:08 AM -
0 Votes
EF 4.1 SaveChanges() not updating
p.ID == myID); d.Notes = "Test"; // This is not needed because you are working with an entity that is attached to the // ObjectContext and is being tracked.Answered | 1 Replies | 2227 Views | Created by AlexeiF - Thursday, March 22, 2012 5:51 PM | Last reply by Fernando Soto - MCSD - Thursday, March 22, 2012 8:27 PM -
1 Votes
Updating (detached) POCO in EF4
Why not let me take an entity and set its EntityState to detached?Answered | 10 Replies | 6702 Views | Created by Groggg987 - Friday, March 25, 2011 11:10 AM | Last reply by Joel McBeth - Friday, August 19, 2011 5:57 PM -
0 Votes
Attaching detached Entity to new DbContext does not apply changes
Better solution Update changes made to detached object to the original object gathered from data source.Answered | 6 Replies | 9733 Views | Created by Nirvan - Tuesday, June 7, 2011 6:14 AM | Last reply by Serdar Karahisarlı - Saturday, July 16, 2011 6:49 AM -
1 Votes
data validation in ef 6
An Entity Framework (EF) entity is nothing more than a class really and a well-architectured enterprise WPF client application should not have any dependency ...Answered | 12 Replies | 1411 Views | Created by giuseppe ferrrari - Friday, June 10, 2016 3:37 PM | Last reply by Gerhard - Wednesday, December 13, 2017 10:15 AM -
1 Votes
ETA on Entity Framework version 6 provider?
Here's the preview release for the EF6 support: ...Answered | 6 Replies | 3972 Views | Created by JeroMiya - Wednesday, February 27, 2013 4:20 PM | Last reply by Pratik Patel - MSFT - Monday, October 21, 2013 5:42 PM -
0 Votes
EF deep update
EF POCO implememntation will then use the virtual keyword in order to create a runtime proxy on top of the POCO entity which will include change tracking.Answered | 3 Replies | 4030 Views | Created by Allen Anderson - Thursday, November 18, 2010 6:54 AM | Last reply by Gil Fink - Sunday, November 21, 2010 9:04 AM -
0 Votes
save datagrid changes on db entity framework 6
https://social.msdn.microsoft.com/Forums/vstudio/en-US/d62f7ddc-b3fe-4d60-b1f8-25a58c34458b/edit-and-add-records-to-ef-6-from-a-datagrid?Answered | 2 Replies | 5850 Views | Created by giuseppe ferrrari - Friday, June 10, 2016 11:18 AM | Last reply by Magnus (MM8) - Saturday, June 11, 2016 9:58 AM -
0 Votes
Business Objects and EF
That is basicaly it. remember though that I have a class of my own that is not in the EF.Answered | 4 Replies | 3796 Views | Created by Mattaniah - Monday, March 30, 2009 5:46 PM | Last reply by Mattaniah - Friday, April 3, 2009 1:16 PM -
1 Votes
EF: Associations with child entities
My knowledge of the inner workings of EF is fairly limited, your explanation clears that up nicely.Answered | 3 Replies | 3904 Views | Created by Alastair Grant - Tuesday, July 27, 2010 2:18 PM | Last reply by Michael Sun [MSFT] - Monday, August 2, 2010 6:16 AM -
2 Votes
Code-First entity framework Update detached objects - CTP5
If Address is it's own entity type then I assume that the primary key of Address is also the foreign key to user?Answered | 4 Replies | 7220 Views | Created by Shawn Mclean - Monday, January 31, 2011 7:47 PM | Last reply by Rowan Miller - Friday, February 4, 2011 10:02 PM -
1 Votes
question to business-logic in the entities of the EF
But i don't found an adequate solution for me - maybe it's my problem, until now i used directly the EF-entities as datalayer and as businesslayer.Answered | 5 Replies | 3399 Views | Created by M.Erlinger - Wednesday, June 16, 2010 1:18 PM | Last reply by Srinivas Gantimahapatruni - MCPD - Monday, June 28, 2010 3:11 PM -
0 Votes
Entity Framework 4.0 Best Practices: Do I need to detach an object before I add it to the ASP.NET Session?
Hi, I need to leave an EF 4.0 entity object in the ASP.NET session.Answered | 1 Replies | 4468 Views | Created by Max_2010 - Thursday, October 14, 2010 10:10 PM | Last reply by Valeriob - Friday, October 15, 2010 6:46 AM -
0 Votes
Update an Entity Relations with an *-* FK
These two lines are probably not doing what you think they are doing: ent.Detach(familySpec); ...Answered | 1 Replies | 3536 Views | Created by Amin-Mashayekhi - Tuesday, May 11, 2010 6:53 AM | Last reply by Arthur Vickers - MSFT - Thursday, May 13, 2010 4:15 PM - Items 1 to 20 of 943386 Next ›
No announcements