Beispiel #1
0
 public void Add(BEOKeyColumn aKeyColumn)
 {
     if (this.Contains(aKeyColumn.Name))
     {
         this.Remove(aKeyColumn.Name);
     }
     _List.Add(aKeyColumn);
 }
Beispiel #2
0
        public void AddNew(string aName, string aDataType, object aValue)
        {
            BEOKeyColumn col = new BEOKeyColumn();
            col.Name = aName;
            col.DataType = aDataType;
            col.Value = aValue;

            this.Add(col);
        }
Beispiel #3
0
 public bool Contains(BEOKeyColumn keycol)
 {
     bool ret = false;
     foreach (BEOKeyColumn col in _List)
     {
         if (col.Equals(keycol))
         {
             ret = true;
             break;
         }
     }
     return ret;
 }
Beispiel #4
0
        public bool Equals(BEOKeyColumn col)
        {
            if (!col.Name.Equals(_Name))
                return false;

            if (!col.DataType.Equals(_DataType))
                return false;

            if (!col.Value.Equals(_Value))
                return false;

            return true;
        }
Beispiel #5
0
 private bool compare(BEOKeyColumn col1, BEOKeyColumn col2)
 {
     return col1.Equals(col2);
 }