SetFetchMode call ignored
问题 I have a problem with SetFetchMode call in Criteria API in following query: DetachedCriteria.For<User>() .Add<User>(u => u.Status == UserStatus.Live) .CreateAlias("UniqueId", "uid") .CreateAlias("Companies", "comp") .Add(Restrictions.Disjunction() .Add(Restrictions.Like("uid.Uid", context.Text, MatchMode.Anywhere)) .Add(Restrictions.Like("comp.Name", context.Text, MatchMode.Anywhere))) .SetFetchMode("Companies", FetchMode.Eager)); My Classes: public class User : EntityBase<int> { public