public bool Equals(Laziness other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.value, value)); }
public void LazyLoadingTest() { Laziness.ImplicitLazyLoading(); Laziness.ExplicitLazyLoading(); Laziness.ExplicitLazyLoadingWithQuery(); try { Laziness.LazyLoadingAndDeferredExecution(); } catch (EntityCommandExecutionException exception) { Trace.WriteLine(exception); } Laziness.LazyLoadingAndImmediateExecution(); }
public void EagerLoadingTest() { Laziness.EagerLoadingWithInclude(); Laziness.EagerLoadingWithIncludeAndSelect(); Laziness.EagerLoadingWithSelect(); Laziness.PrintSubcategoriesWithLazyLoading(); Laziness.PrintSubcategoriesWithEagerLoading(); Laziness.ConditionalEagerLoadingWithSelect(); try { Laziness.ConditionalEagerLoadingWithInclude(); } catch (ArgumentException exception) { Trace.WriteLine(exception); } }
public new void LazyLoad(Laziness laziness) { mapping.Lazy = laziness.ToString(); nextBool = true; }
public bool Equals(Laziness other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.value, value); }
public new void LazyLoad(Laziness laziness) { mapping.Set(x => x.Lazy, Layer.Conventions, laziness.ToString()); nextBool = true; }
public void DisableDeferredLoadingTest() { Laziness.DisableDeferredLoading(); }
public void EagerLoadingTest() { Laziness.EagerLoadingWithSelect(); Laziness.EagerLoadingWithRelationship(); Laziness.ConditionalEagerLoading(); }
public void DeferredExecutionTest() { Laziness.DeferredExecution(); }
public void EagerLoadingTest() { Laziness.EagerLoadingWithSelect(); Laziness.EagerLoadingWithAssociation(); Laziness.ConditionalEagerLoading(); }
/// <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 ManyToOneBuilder <TOther> LazyLoad(Laziness laziness) { mapping.Lazy = laziness.ToString(); nextBool = true; return(this); }
public void DisableLazyLoadingTest() { Laziness.DisableLazyLoading(); Laziness.DisableProxy(); }
public void DeferredExecutionTest() { Laziness.WhereAndSelect(); }