Buenas.
Recurro de nuevo al grupo para ver si me puede ayudar en este
problema.
Seguro que hago algo incorrectamente, pero no logro encontrarlo.
Hago algo tan simple como:
Linea linea = Session.Load<Linea>(id);
IQuery q = Session.CreateFilter(linea.Motivos, "where Baja = false");
return q.List<Motivo>();
y me da un error de "The collection was unreferenced".
Esta es la clase:
public class Linea : BaseEntity, IEntity
{
...
public Iesi.Collections.ISet Motivos { get; set; }
}
y este el mapeo:
...
<set name="Motivos" table="ZPM_MOTAVISO" lazy="true"
cascade="none">
<key column="AREANEG"/>
<many-to-many column="MOTAVISO" class="Motivo, myAssembly">
</many-to-many>
</set>
...
Muchas gracias !!!
--
Para escribir al Grupo, hágalo a esta dirección:
[email protected]
Para más, visite: http://groups.google.com/group/NHibernate-Hispano