I have a Customer with a list of Contacts. This list is an ISet collection. I can't do a Linq query on it. Could you help me for this ?
Thanks,
public class Customer
{
public virtual Iesi.Collections.Generic.ISet<Contact> Contacts { get; set; }
}
Customer customer = session.Get(id);
customer.Contacts = // Error - customer.Contacts.Where(x => x.Id != contactId);
Update 1
Tried this : from p in customer.Contacts.AsEnumerable() where p.Id != id select p;
error on the where.System.Collections.Generic.IEnumerable'
to 'Iesi.Collections.Generic.ISet'.
An explicit conversion exists (are you missing a cast?)