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(); } }
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; }