示例#1
0
        public string conformMessage(TableFormat rf)
        {
            if (this.getRecordCount() < rf.getMinRecords())
            {
                return("Number of records too small: need " + rf.getMinRecords() + " or more, found "
                       + this.getRecordCount());
            }

            if (this.getRecordCount() > rf.getMaxRecords())
            {
                return("Number of records too big: need " + rf.getMaxRecords() + " or less, found "
                       + this.getRecordCount());
            }

            return(this.getFormat().extendMessage(rf));
        }
示例#2
0
 public DataTable(TableFormat format, bool createEmptyRecords)
     : this(format, createEmptyRecords ? format != null ? format.getMinRecords() : 0 : 0)
 {
 }