Ejemplo n.º 1
0
		public void Lazy(LazyRelation lazyRelation)
		{
			switch (lazyRelation.ToHbm())
			{
				case HbmLaziness.False:
					manyToOne.lazy = HbmRestrictedLaziness.False;
					manyToOne.lazySpecified = true;
					break;
				case HbmLaziness.Proxy:
					manyToOne.lazy = HbmRestrictedLaziness.Proxy;
					manyToOne.lazySpecified = true;
					break;
				case HbmLaziness.NoProxy:
					manyToOne.lazy = HbmRestrictedLaziness.False;
					manyToOne.lazySpecified = true;
					break;
				default:
					throw new ArgumentOutOfRangeException();
			}
		}
Ejemplo n.º 2
0
		public void Lazy(LazyRelation lazyRelation)
		{
			oneToOne.lazy = lazyRelation.ToHbm();
			oneToOne.lazySpecified = oneToOne.lazy != HbmLaziness.Proxy;
		}
 public void Lazy(LazyRelation lazyRelation)
 {
     manyToOne.lazy = lazyRelation.ToHbm();
     manyToOne.lazySpecified = manyToOne.lazy != HbmLaziness.Proxy;
 }
 public void Lazy(LazyRelation lazyRelation)
 {
     customizersHolder.AddCustomizer(propertyPath, (IManyToManyMapper x) => x.Lazy(lazyRelation));
 }