try with: [HasMany(typeof(Dokument), ColumnKey = "PacijentID", Table = "Dokument", *Lazy=true*)] public *virtual* IList<Dokument> Dokuments {...}
That should be enough, provided you are using SessionScope. -Markus 2009/6/8 vekaz turkovic <vek...@gmail.com>: > I tried removing all the relations from Patient, except for one - > Document, and still the same queries get generated. > Document table has only one relation - that with Patient: > [BelongsTo("PacijentID")] > public virtual Pacijent Pacijent > {...} > > Patient side: > [HasMany(typeof(Dokument), ColumnKey = "PacijentID", Table = > "Dokument")] > public IList<Dokument> Dokuments > {...} --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send email to castle-project-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---