I want to check if entity is in a Collection member (开发者_开发问答@OneToMany or @ManyToMany) of another entity:
I\'m using a EntityDataSource with WhereParameters binded 开发者_如何学编程from DropDownLists. The Where Clause may be something like this: \"it.applicationId = @applicationId\" but in that DropDownLi
开发者_JAVA技巧My Entity class has a dependency on a Repository. public class User { private readonly IUserRepository _userRepository;
I\'ve been converting my manual SQL repository that uses SqlCommand and SqlConnection to use EF4 and so far so good apart from I have got stuck trying to right a SQL statement as Linq.
Say you have a couple of Core Data entities .. Stud开发者_开发技巧ent and Exam. These two are initially filled with data from two xml files downloaded from the web.
When I try to use ToString() inside the below LINQ Lambda expression, I get an exception saying \"LINQ to Entities does not recognize the method \'System.String ToString()\' method, and this method ca
I m using EF4 and having problems with many to many update and delete of item. I am happy with the insert but update and delete cannot figure it out.
Netbean 6.9 generated the following JPA entity class from this SQL Server 2008 table: I want to get all the ProductDescriptors that have a specific SKU value.Something like this:
I just asked myself is it real开发者_如何学运维ly needed to pass the whole List SelectedCustomers to the delete method of the Repository like:
I have a EF-model with ChatRoom, ChatMessage and Participant. At one point I need to fetch a certain ChatRoom including all its participants but only wit开发者_如何学运维h a count of the number of mes