No announcements
Found 465082 threads
-
0 Votes
Entity Framework SaveChanges() exception
Hi, I am using MVC4 and entity framework to manage data. And I often met exception when I updating data, The code is : entities.Entry(obj).State = ...Answered | 5 Replies | 3065 Views | Created by Pigger9 - Tuesday, October 29, 2013 4:50 PM | Last reply by Adavesh - Wednesday, October 30, 2013 2:17 AM -
0 Votes
Rollback using ADO.NET Entity Framework
Hello Friends, How are you?? I am facing problem in ADO.NET entity framework. I want to impliment Rollback functionality using Entity frameowrk. I am trying ... -
0 Votes
An error occurred while updating the entries. See the inner exception for details
for details. when use sql server profiler to inspect the query I found > that Entity framework is trying to insert aAnswered | 3 Replies | 20388 Views | Created by kaiser lorson - Monday, September 19, 2011 9:45 AM | Last reply by JA Reyes - Monday, September 19, 2011 1:07 PM -
0 Votes
How to Refresh Entity frame work?
Hi, I use entity framework. I call load method after update method.Database updated successfully.But load method alwayes brings old ...Discussion | 1 Replies | 874 Views | Created by Anand Palanithurai - Saturday, September 22, 2012 1:42 AM | Last reply by Mr.Weera PongPruchya - Saturday, September 22, 2012 3:44 AM -
2 Votes
Entity Framework 4.0 and self tracking entities, when I change state with MarkedAsModified, when do savechanges I get an concurrency exception
of one the tables, because the other table only has additional information, so I follow this steps: 1.- I create the entity that correspond to the ...Answered | 3 Replies | 2304 Views | Created by ComptonAlvaro - Monday, May 21, 2012 8:37 PM | Last reply by Username already in use - Wednesday, May 30, 2012 4:20 PM -
0 Votes
SaveChanges() fails
Synonyms (1 --> *), when saving changes fails.Answered | 3 Replies | 4277 Views | Created by VladiKuz - Wednesday, July 13, 2011 11:58 AM | Last reply by VladiKuz - Wednesday, July 13, 2011 2:37 PM -
0 Votes
Retrying SaveChanges with Entity Framework DbContext in Sql Azure
Hi Chris Keyser, Please pay attention to the Case #2Answered | 2 Replies | 10784 Views | Created by Chris Keyser - Thursday, April 26, 2012 11:22 AM | Last reply by Stephanie Lv - Monday, April 30, 2012 9:12 AM -
0 Votes
"Non-static method requires a target." error when entity has a property that returns an interface.
interface. When the property returns a null value for the interface the exception is thrown. I don't know enough about reflection or the SaveChanges architecture to ...Unanswered | 4 Replies | 39600 Views | Created by Stewart Armbrecht - Tuesday, January 6, 2009 5:29 PM | Last reply by BenPeterMorris - Sunday, February 1, 2009 8:40 PM -
0 Votes
I don't get an concurrency exception.
I'm working at an ASP.Net Webapplication which uses Entity Framework. My Problem is that I can't achieve the object to be updated. I have got 2 tables one's ... -
0 Votes
How to add detached entity with referenced objects?
Hello. I'm trying to organize data export/import from one db to another using entity framework. Lets assume some simple db structure like BaseItem {Id, Name} and ... -
0 Votes
Returning ObjectQuery<T> in WCF Service causes a transaction exception on next SaveChanges
Hi, I hope this forum is still the right one for Entity Framework related questions? (If so, maybe you could remove the 'pre-release' stuff fromUnanswered | 1 Replies | 5367 Views | Created by Alex Duggleby - Wednesday, August 27, 2008 7:37 PM | Last reply by jrista - Wednesday, August 27, 2008 7:49 PM -
0 Votes
EntityFramework-N Tier- Updating Related Tables with Master table
Temporary Key" > > As mentioned in msdn article "The Entity Framework In Layered >Answered | 1 Replies | 2114 Views | Created by SangeethaG23 - Friday, January 13, 2012 9:38 AM | Last reply by darnold924 - Friday, January 13, 2012 4:53 PM -
0 Votes
Exception Handling with Entity Framework context.SaveChanges()
We making multiple updates to our Entity Framework object context based on the changes made to the UI. For e.g. If we have an Employee entity in our ...Answered | 1 Replies | 24646 Views | Created by vherkal - Thursday, July 15, 2010 11:26 AM | Last reply by liurong luo - Monday, July 19, 2010 7:27 AM -
0 Votes
How to add transaction to Entity Framework 4 SaveChanges and SqlConnection
; Anyone have any ideas how to wrap a Entity Framework 4 SaveChanges within a transaction with SqlConnection methods? The underlying ...Unanswered | 3 Replies | 1394 Views | Created by brcbrc - Monday, September 30, 2019 10:49 PM | Last reply by DA924x - Tuesday, October 1, 2019 8:00 AM -
0 Votes
Entity Framework add record with is identity key
0 on an add, then EF is going to throw an exception. After the SaveChanges() on an AddObject(), then theAnswered | 8 Replies | 19700 Views | Created by Pascal Le Griffon - Tuesday, February 1, 2011 6:36 PM | Last reply by Michael Sun [MSFT] - Friday, February 4, 2011 7:10 AM -
0 Votes
DeleteOnNull equivalent for entity framework?
Hi. Is there an equivalent to the DeleteOnNull setting from Linq to SQL in the entity framework? I think I must need something like it. I have a parent object with a ...Unanswered | 1 Replies | 3964 Views | Created by SarahGF - Monday, December 15, 2008 11:21 AM | Last reply by SarahGF - Tuesday, December 16, 2008 9:41 AM -
0 Votes
Entity Framework SaveChanges Error
So I am getting this strange error with my entity framework saving. The following code is for adding elements to to my Elements Table and if they exist it simply retrieves those ...Answered | 2 Replies | 2724 Views | Created by NerdHerd91 - Wednesday, September 5, 2012 4:58 PM | Last reply by Lisa Zhu - Friday, September 7, 2012 5:33 AM -
0 Votes
Exception Handling when Using Entity Framework 4 .Guidelines ?
Hi all, I have been using entity framework 4 and at the moment I have no exception handling if reading or saving via objectContext ...Answered | 1 Replies | 6454 Views | Created by devBrix - Wednesday, January 5, 2011 3:32 PM | Last reply by Jackie-Sun - Monday, January 10, 2011 10:10 AM -
0 Votes
Entity Framework + WCF Data Service + Concurrency
from bergespe at online.no. As for my setup: Entity Framework 4.0 WCF Data Service 2.0? (not exactly sure, using the one ...Answered | 6 Replies | 6310 Views | Created by Espen B - Monday, November 8, 2010 3:25 PM | Last reply by Kássio Duarte - Monday, November 29, 2010 1:29 AM -
0 Votes
ObjectContext.Refresh throws InvalidOperationException when entities deleted outside the scope of the context
relatively new to the Entity Framework and I'm fixing bugs in code that was written by somebody else. Currently the code is calling SaveChanges on the instance of the ...Answered | 2 Replies | 8737 Views | Created by jglover13 - Monday, April 4, 2011 11:11 PM | Last reply by Alan_chen - Tuesday, April 12, 2011 6:11 AM - Items 1 to 20 of 465082 Next ›
No announcements