示例#1
0
 public Boolean setExitstsProp(TableProp property)
 {
     for (int i = 0; i < this.props.Count; i++)
     {
         if (this.props[i].assignedTable == property.assignedTable)
         {
             this.props[i] = property;
             return(true);
         }
     }
     return(false);
 }
示例#2
0
        public void setTableProp(TableProp property)
        {
            TableProp tmpProp = this.getProp(property.assignedTable);

            if (tmpProp != null)
            {
                if (!this.setExitstsProp(property))
                {
                    throw new Exception("Failed to set property ");
                }
            }
            else
            {
                this.props.Add(property);
            }
        }