示例#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);
        }