Ejemplo n.º 1
0
            public void Should_generate_correct_code_given__subselect()
            {
                _fetch.Add(HbmCollectionFetchMode.Subselect);
                string result = _builder.ToString();

                result.ShouldBeEqualTo($".{Fetch.FluentNHibernateNames.Fetch}.{Fetch.FluentNHibernateNames.Subselect}");
            }
Ejemplo n.º 2
0
        public bool AddFetchRefSpec(RefSpec s)
        {
            if (Fetch.Contains(s))
            {
                return(false);
            }

            Fetch.Add(s);

            return(true);
        }