Beispiel #1
0
 public SearchParameter(int currentPage, string orderby, params string[] keyvalues)
 {
     Page    = currentPage;
     OrderBy = new List <OrderByItem>();
     OrderBy.Add(new OrderByItem(orderby));
     SearchKeyValues = new List <ColumnNameValueItem>();
     if (keyvalues != null && keyvalues.Count() > 0)
     {
         for (int i = 0; i < keyvalues.Count(); i = i + 2)
         {
             if (i + 1 < keyvalues.Count())
             {
                 ColumnNameValueItem item = new ColumnNameValueItem(keyvalues[i], keyvalues[i + 1]);
                 SearchKeyValues.Add(item);
             }
         }
     }
 }
Beispiel #2
0
 public DependencyCheckItem(string tableName, string columnName, string targetColumnName, object columnValue)
 {
     TableName        = tableName;
     TargetColumnName = targetColumnName;
     ColumnItem       = new ColumnNameValueItem(columnName, columnValue);
 }
Beispiel #3
0
 public ForeignKeyCheckItem(string tableName, string columnName, string targetColumnName)
 {
     TableName        = tableName;
     TargetColumnName = targetColumnName;
     ColumnItem       = new ColumnNameValueItem(columnName);
 }