Ejemplo n.º 1
0
 public void Add(bool lazySpecified, HbmCollectionLazy lazy)
 {
     if (lazySpecified)
     {
         if (lazy == HbmCollectionLazy.False)
         {
             _builder.AddLine(string.Format(".{0}.{1}()", FluentNHibernateNames.Not, FluentNHibernateNames.LazyLoad));
         }
         else
         {
             _builder.AddLine(string.Format(".{0}()", FluentNHibernateNames.LazyLoad));
         }
     }
 }
Ejemplo n.º 2
0
 public void Add(bool lazySpecified, HbmCollectionLazy lazy)
 {
     if (lazySpecified)
     {
         if (lazy == HbmCollectionLazy.False)
         {
             _builder.AddLine(string.Format(".{0}.{1}()", FluentNHibernateNames.Not, FluentNHibernateNames.LazyLoad));
         }
         else
         {
             _builder.AddLine(string.Format(".{0}()", FluentNHibernateNames.LazyLoad));
         }
     }
 }