c# Programming Glossary: entity
When should I dispose of a data context http://stackoverflow.com/questions/389822/when-should-i-dispose-of-a-data-context IDisposable If application logic needs to hold onto an entity beyond when the DataContext is expected to be used or valid.. that contract by calling Dispose. Deferred loaders in that entity will still be referencing the DataContext and will try to use.. its cache of materialized entities so that a single cached entity will not accidentally keep alive all entities materialized through..
What is the purpose of self tracking entities? http://stackoverflow.com/questions/5091974/what-is-the-purpose-of-self-tracking-entities self tracking entities and why would you use them c# .net entity framework self tracking entities share improve this question.. set is DataSet . The difference between STE and other entity types POCO EntityObject is that common entity types can track.. and other entity types POCO EntityObject is that common entity types can track changes only when connected to living ObjectContext..
The entity cannot be constructed in a LINQ to Entities query http://stackoverflow.com/questions/5325797/the-entity-cannot-be-constructed-in-a-linq-to-entities-query entity cannot be constructed in a LINQ to Entities query There is.. be constructed in a LINQ to Entities query There is an entity type called product that is generated by entity framework. I.. is an entity type called product that is generated by entity framework. I have writen this query public IQueryable Product..
Unique key with EF code first http://stackoverflow.com/questions/5701608/unique-key-with-ef-code-first Can any suggest me how to do it please c# ef code first entity framework 4.1 unique key share improve this question Unfortunately..
Fastest Way of Inserting in Entity Framework http://stackoverflow.com/questions/5940225/fastest-way-of-inserting-in-entity-framework will lead to an incomplete transaction. Regards. c# sql entity framework share improve this question To your remark in the.. false int count 0 foreach var entityToInsert in someCollectionOfEntitiesToInsert count context AddToContext.. count context AddToContext context entityToInsert count 100 true context.SaveChanges finally if context..
Create code first, many to many, with additional fields in association table http://stackoverflow.com/questions/7050404/create-code-first-many-to-many-with-additional-fields-in-association-table better way to create the association table Thank you. c# entity framework code first share improve this question It's not..
Making Entity Class Closed for Changes http://stackoverflow.com/questions/11425993/making-entity-class-closed-for-changes Entity Class Closed for Changes I have a database relationship as.. Getting an error when using ObjectContext.AddObject with Entity Framework Refactoring code using Strategy Pattern Prefer composition.. set public void MakePayment DBML_Project.Payment paymentEntity new DBML_Project.Payment paymentEntity.PaymentID 1 paymentEntity.PaymentType..
Complex UI inside ListBoxItem http://stackoverflow.com/questions/15532639/complex-ui-inside-listboxitem way that each of my ListBoxItems can be bound to a complex Entity eventually including an intermediate type conversion from Model.. way that each of my ListBoxItems can be bound to a complex Entity eventually including an intermediate type conversion from Model..
switch / pattern matching idea http://stackoverflow.com/questions/156467/switch-pattern-matching-idea invocation. I haven't checked recently but in some early Entity Framework builds I seem to recall this being necessary as it..
Entity Framework 4 - AddObject vs Attach http://stackoverflow.com/questions/3920111/entity-framework-4-addobject-vs-attach Framework 4 AddObject vs Attach I have been working with Entity.. Framework 4 AddObject vs Attach I have been working with Entity Framework 4 recently and am slightly confused as to when to.. . From my understanding Use Attach when an Entity already exists in the system Use AddObject when creating a brand..
Entity Framework 4 Delete Object from entity collection http://stackoverflow.com/questions/4922228/entity-framework-4-delete-object-from-entity-collection Framework 4 Delete Object from entity collection I have a Request.. 4 Delete Object from entity collection I have a Request Entity with an 1.. relationship to the RequestProperty Entity. So there's.. Entity with an 1.. relationship to the RequestProperty Entity. So there's a collection of RequestProperty objects in Request..
Fastest Way of Inserting in Entity Framework http://stackoverflow.com/questions/5940225/fastest-way-of-inserting-in-entity-framework Way of Inserting in Entity Framework i'm looking for the fastest way of INSERTING in Entity.. Framework i'm looking for the fastest way of INSERTING in Entity Framework i'm asking this because of the scenario where you.. private MyDbContext AddToContext MyDbContext context Entity entity int count int commitCount bool recreateContext context.Set..
Create code first, many to many, with additional fields in association table http://stackoverflow.com/questions/7050404/create-code-first-many-to-many-with-additional-fields-in-association-table join table internally and hidden. It's a table without an Entity class in your model. To work with such a join table with additional..
Entity Framework - Using Transactions or SaveChanges(false) and AcceptAllChanges()? http://stackoverflow.com/questions/815586/entity-framework-using-transactions-or-savechangesfalse-and-acceptallchanges Framework Using Transactions or SaveChanges false and AcceptAllChanges.. transactions share improve this question With the Entity Framework most of the time SaveChanges is sufficient. This creates.. distributed transaction is aborted. But unfortunately the Entity Framework has already discarded the changes on context1 so you..
|