I have an entity, BusinessUnit, which has a many-to-many relationship with a Contact entity. We\'re using Fluent configuration as per the sample below:
This page says that Database.SetInitializer() \"Gets or sets the database initialization strategy\": http://msdn.microsoft.com/en-us/library/system.data.entity.database%28v=vs.103%29.aspx
Consider the following hierarchy: Department -> Category -> Product (Each department contains multiple categories, each of which contains multiple products.)
I have a class that inherits a base class to which another class has relationships. Example: Base class: Animal
I have a rowversion (timestamp) column which is set to computed in my EF designer. Setting the value in code, via the direct property like
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
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.
I\'m using EF 4.1 Database First approach, with T4 template generating my POCO classes in separate assembly. I have repositories for fetching data, and service layer which is used for communication wi