In my domain I have these classes (in simplified form) public class Document { public string Id { get; set; }
I built my EF Model in EF 4.0, and then installed the 4.1 upgrade that includes the new DBContext interface.How开发者_如何学JAVA do I update my model so that it uses the 4.1 features going forward?
I want to create my first application using the EF 4.1 Code First Model. I want to model a magazine subscription but just开发者_如何学编程 want to check that my POCO classes are fit for purpose.
I wasn’t sure how to really word my question and I may change it based on some feedback. When it is a good idea to have reference relationships (in my POCOs) setup so I can look up a parent record f
As i dig deeper in to the DbContext, DbSet and associated interfaces, I am wondering why you would need to implement a separate \"Generic\" Repository around these implementations?
I\'m searching for the formula functionality in NHibernate with EF Code first. Say that I have an Order with OrderLines, on the order I have my TotalAmount which could look like this
Is it possible to return a complex type from a WCF data service that is made of collections of entity types ?
How do I delete all child objects in in a many to many scenario? For example, I\'d like to delete all roles belonging to a 开发者_StackOverflow社区user.
I have the concept of user and roles where User has many roles and Role has many users. If a user is in a role (using a link table generated by EF), and I try to delete it, it does not cascade, then i
I have two entities referenced one to many. When entity framework crea开发者_如何学运维ted the table it creates two foreign keys, one for the key I have specified with the fluent interface and the oth