2 entities: Member and Comment Member has an ICollection<Comment> Comments Whenever I use member.Comments.Take(x) EF produces a query that gets all the comments from database.
I\'ve build a little WPF demo app which uses EF Code-First to save its data in a SQL CE 4.0 DB. It works fine unless I remove a property from a model object. For example, if I remove \"HosteBy\" from
I have a Users table and a UserProfiles table. A user has either zero or only one User profile. (i.e one to one relationship) can someone help me use EF4.1 fluent API to Map the Users Entity to the bo
Simple: How do I get the mapped table name from a DbEntityEntr开发者_运维问答y object? I\'m inside a class that extends DbContext. I\'ve seen examples for ObjectContext but doesn\'t apply to CF.
Let\'s say we have User, Line Of Business (LOB) and Role. User have 1 LOB. But a user can also have number of roles within different LOBs.
We have the following: Order with UserId and User table. Let\'s say we want to cache all User objects as disconnected entities and then use them in ASP.NET or web services like environment.
How can I update audit information contained in an entity before actually deleting it? I\'m working on a class derived from DbContext.
I have two simple POCO classes; I\'m trying to get the MyY property below hydrated with the an instance of Y. I\'ve tried a number of ways to do this, and think I might be missing something obvious or
I have two entities called Category and Product with 1:n relation. I want to get a Category with its childs that childs be in order.
I have the following two entities: public class User { public int PKID { get; set; } public string Login { get; set; }