I have an Invoice entity and it has child InvoiceLog entities. When I first create an Invoice and add its InvoiceLog entities and save, it works fine. However, if I then edit the Invoice and try to ad
If I create a function import for a stored procedure in Entity Framework 4 and set \"Returns a collection o开发者_如何学Pythonf\" to None I don\'t get the stored procedure as a method on the Data Cont
How can I update an entity without having to make a call to select it. If I supply the key for the entity, should it not know to update after SaveChanges() is called on the ObjectContext.
I have an ObjectStateEntry \"entry\". I need to get a property value from this \"entry\" like so开发者_如何学Go, but I don\'t know how to specify the property I want. I use entry.OriginalValues(propNa
I\'m trying to reuse part of a query, because it\'s complex enough that I want to try to avoid code dupl开发者_如何转开发ication.
Lets say I build an Service Layer wich deals with POCOs coming out of an repository. The Repository is aware of the EF 4.0 and deals with POCO generation and so on. But that does also mean that my Rep
I updated my solution from .NET 3.5 to 4.0, and thanks god, I just had to fix minor things. But what I don\'t understand is, the edmx file generated many warnings like this:
I have a EDM with a entity \"Extensions\" - within this object is the property extension. I\'ve wired up all the other columns just fine, but this one refuses to wire up. I\'m guessing because the ent
Is it possible to have a class X and create multiple tables from it using the Entity Framework 4, code first, during runtime?
I have an Entity Framework 4 model first layer, where I have a Product base class and then different classes that derive from the class. For each type of Product there is a Partial Class, and then eac