Ejemplo n.º 1
0
 /// <summary>
 /// Specify the lazy behaviour of this relationship. Cannot be used
 /// with the <see cref="Not"/> modifier.
 /// </summary>
 /// <param name="laziness">Laziness strategy</param>
 /// <example>
 /// LazyLoad(Laziness.NoProxy);
 /// </example>
 public ManyToOnePart <TOther> LazyLoad(Laziness laziness)
 {
     attributes.Set("Lazy", Layer.UserSupplied, laziness.ToString());
     nextBool = true;
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Specify the lazy behaviour of this relationship. Cannot be used
 /// with the <see cref="Not"/> modifier.
 /// </summary>
 /// <param name="laziness">Laziness strategy</param>
 /// <example>
 /// LazyLoad(Laziness.NoProxy);
 /// </example>
 public OneToOnePart <TOther> LazyLoad(Laziness laziness)
 {
     attributes.Set(x => x.Lazy, laziness.ToString());
     nextBool = true;
     return(this);
 }