예제 #1
0
        public void Test_Criteria_EmptyRelKey()
        {
            //--------------- Set up test pack ------------------
            BOPropCol propCol   = new BOPropCol();
            RelKeyDef relKeyDef = new RelKeyDef();
            RelKey    relKey    = new RelKey(relKeyDef, propCol);
            //--------------- Test Preconditions ----------------

            //--------------- Execute Test ----------------------
            Criteria relCriteria = relKey.Criteria;

            //--------------- Test Result -----------------------
            Assert.IsNull(relCriteria);
        }
예제 #2
0
 /// <summary>
 /// Create a relationship key based on this key definition and
 /// its associated property definitions
 /// </summary>
 /// <param name="lBoPropCol">The collection of properties</param>
 /// <returns>Returns the new RelKey object</returns>
 public IRelKey CreateRelKey(IBOPropCol lBoPropCol)
 {
     RelKey lRelKey = new RelKey(this, lBoPropCol);
     return lRelKey;
 }
예제 #3
0
        /// <summary>
        /// Create a relationship key based on this key definition and
        /// its associated property definitions
        /// </summary>
        /// <param name="lBoPropCol">The collection of properties</param>
        /// <returns>Returns the new RelKey object</returns>
        public IRelKey CreateRelKey(IBOPropCol lBoPropCol)
        {
            RelKey lRelKey = new RelKey(this, lBoPropCol);

            return(lRelKey);
        }