PC Review


Reply
Thread Tools Rate Thread

Detaching an object graph in EntityFramework?

 
 
Lars-Erik
Guest
Posts: n/a
 
      26th Feb 2010
Hi!

I had to detach a graph like AggregateEntity.ChildCollection.RelatedObject
today. It resulted in a method of 23 lines. Is it possible to do something
like Context.DetachEverything(aggregateEntity)?

Lars-Erik

 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      26th Feb 2010
Hello,

Perhaps using an extension method ?

If this is directed at MS try rather http://connect.microsoft.com/

--
Patrice

"Lars-Erik" <lars-(E-Mail Removed)> a écrit dans le message de groupe
de discussion : DF40E488-93E8-4C95-A6AF-(E-Mail Removed)...
> Hi!
>
> I had to detach a graph like AggregateEntity.ChildCollection.RelatedObject
> today. It resulted in a method of 23 lines. Is it possible to do something
> like Context.DetachEverything(aggregateEntity)?
>
> Lars-Erik
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: MVC Application using EntityFramework Craig Lister Microsoft C# .NET 0 28th Dec 2010 08:54 PM
MVC Application using EntityFramework Craig Lister Microsoft C# .NET 0 28th Dec 2010 09:10 AM
EntityFramework gerry Microsoft ADO .NET 3 29th Dec 2008 02:23 AM
report with Graph Ole object, can I manipulate the datasource of the graph by code? Philip Leduc Microsoft Access Reports 1 27th Jun 2005 11:03 AM
report with Graph Ole object, can I manipulate the datasource of the graph by code? Philip Leduc Microsoft Access 0 23rd Jun 2005 12:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:35 AM.