savechanges
How to hook an action after SaveChanges is successful
Our product has to be interfaced with multiple client/partner systems. For example, when a person is added/updated we have to notify changes to a 3rd-party system, for example by calling a web service[详细]
2023-01-25 18:40 分类:问答EF4 Code First Adding a Entity with virtual navigation property null to a 1 to many
I have the following EF4 Code First classes: [Serializable] pu开发者_StackOverflow社区blic class WOChangeLogHeader[详细]
2023-01-24 23:30 分类:问答EF4 - Add object to objectcontext without savechanges
I have a page like Order - Order lines. Order represents by some textboxes and ddl开发者_C百科s, Order lines represents by GridView.[详细]
2023-01-23 03:54 分类:问答EF ObjectContext.SaveChanges is missing
I am working with Entity Framework on a new Project. I\'ve been using EF since a year ago. Today i\'ve tried to generate Entity Data Model with Visual Studio (2008 SP1 and 2010) and it is generating o[详细]
2023-01-16 17:00 分类:问答ObjectContext.SaveChanges() violates primary key, throws UpdateException?
Paraphrasing from this MSDN documentation ... An INSERT statement is generated by the Entity Framework and executed on[详细]
2023-01-15 18:22 分类:问答Entity Framework / EF4: Multiple inserts of related entities in a transactionscope
I have a similar problem. I want to make two inserts in the same transactionscope. The objects are related and have a FK relationship between them, but for several reasons I do not want to connect th[详细]
2023-01-12 15:57 分类:问答How to save a canvas drawing?
I have this finger-painting app and I want my users may save what they draw and come back later and keep drawing.[详细]
2023-01-12 12:46 分类:问答Entity Framework persistence problem giving "The ObjectStateManager does not contain an ObjectStateEntry with a reference to an object of type.."
In the database I have have: PK CountryID int notnull PK ServiceID int notnull PK TaskID int notnull PK TaskItemID int notnull[详细]
2023-01-09 12:59 分类:问答Entity Framework - Initial Save is slow
We are implementing a system using EF4 and WPF.We are noticing an issue with the initial saving of data: when the initial SaveChanges is run there is a 4 to 6 second delay when context.SaveChanges() c[详细]
2023-01-07 05:20 分类:问答Entity Framework : interrupt running SaveChanges
I have a unique ObjectContext, on which I perform a SaveChanges(). This operation takes some time (~60 seconds).[详细]
2022-12-31 01:47 分类:问答
加载中,请稍侯......