Esempio n. 1
0
 internal NearRestrictionData(StoreSession storeSession, NearFilter nearFilter)
 {
     if (nearFilter == null || nearFilter.Filter == null)
     {
         MrsTracer.Common.Error("Null near filter in near restriction data constructor", new object[0]);
         throw new CorruptRestrictionDataException();
     }
     this.Distance        = (int)nearFilter.Distance;
     this.Ordered         = nearFilter.Ordered;
     this.RestrictionData = new AndRestrictionData(storeSession, nearFilter.Filter);
 }
Esempio n. 2
0
 internal NearRestrictionData(Restriction.NearRestriction r)
 {
     if (r == null || r.Restriction == null)
     {
         MrsTracer.Common.Error("Null near restriction in near restriction data constructor", new object[0]);
         throw new CorruptRestrictionDataException();
     }
     this.Distance        = r.Distance;
     this.Ordered         = r.Ordered;
     this.RestrictionData = new AndRestrictionData(r.Restriction);
 }