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) { switch (lazyRelation.ToHbm()) { case HbmLaziness.False: manyToMany.lazy = HbmRestrictedLaziness.False; manyToMany.lazySpecified = true; break; case HbmLaziness.Proxy: manyToMany.lazy = HbmRestrictedLaziness.Proxy; manyToMany.lazySpecified = true; break; case HbmLaziness.NoProxy: manyToMany.lazy = HbmRestrictedLaziness.False; manyToMany.lazySpecified = true; break; default: throw new ArgumentOutOfRangeException(); } }
public void Lazy(LazyRelation lazyRelation) { manyToOne.lazy = lazyRelation.ToHbm(); manyToOne.lazySpecified = manyToOne.lazy != HbmLaziness.Proxy; }
public void Lazy(LazyRelation lazyRelation) { oneToOne.lazy = lazyRelation.ToHbm(); oneToOne.lazySpecified = oneToOne.lazy != HbmLaziness.Proxy; }
public void Lazy(LazyRelation lazyRelation) { _oneToOne.lazy = lazyRelation.ToHbm(); _oneToOne.lazySpecified = _oneToOne.lazy != HbmLaziness.Proxy; }