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