¡@

Home 

c# Programming Glossary: context.entry

Entity framework, problems updating related objects

http://stackoverflow.com/questions/13236116/entity-framework-problems-updating-related-objects

x x.AnotherSubFoo .Single c c.Id newFoo.Id var entry context.Entry Foo dbFoo entry.OriginalValues.SetValues dbFoo entry.CurrentValues.SetValues.. .Include x x.AnotherSubFoo .Single c c.Id newFoo.Id context.Entry dbFoo .CurrentValues.SetValues newFoo context.Entry dbFoo.SubFoo.. context.Entry dbFoo .CurrentValues.SetValues newFoo context.Entry dbFoo.SubFoo .CurrentValues.SetValues newFoo.SubFoo context.SaveChanges..

Where clause on collection

http://stackoverflow.com/questions/13903314/where-clause-on-collection

load navigation properties of a single entity in short context.Entry entity .Collection e e.Children .Query .Where condition . But..

Problem with Eager Loading Nested Navigation Based on Abstract Entity (EF CTP5)

http://stackoverflow.com/questions/5189268/problem-with-eager-loading-nested-navigation-based-on-abstract-entity-ef-ctp5

help you var location context.Locations.SingleOrDefault context.Entry location .Collection l l.Posts .Query .OfType Discussion .Load.. where TElement class _context.Set T .Attach entity _context.Entry entity .Collection navigationProperty .Query .Where predicate..

Entity Framework 4.1 DbSet Reload

http://stackoverflow.com/questions/5799737/entity-framework-4-1-dbset-reload

reload a single entity by calling Reload on DbEntityEntry context.Entry entity .Reload You can also revert back to ObjectContext and..

What causes .Attach() to be slow in EF4?

http://stackoverflow.com/questions/5917478/what-causes-attach-to-be-slow-in-ef4

var entity in list context.Set MyClass .Attach entity context.Entry entity .State System.Data.EntityState.Modified watch.Stop long.. code above time 29 2 sec Test 2 Comment out the line ... context.Entry entity .State System.Data.EntityState.Modified time 15 3 sec..

Attaching and detaching entities from context correctly in EF4.1

http://stackoverflow.com/questions/7678665/attaching-and-detaching-entities-from-context-correctly-in-ef4-1

Attach Detach methods here. Thank you. Follow up question context.Entry entity .State EntityState.Detached Works but makes all the navigational..

EntityFramework update partial model

http://stackoverflow.com/questions/9820540/entityframework-update-partial-model

sampleModel DbEntityEntry SameplModel entry context.Entry sampleModel entry.Property e e.Name .IsModified true entry.Property..