コード例 #1
0
ファイル: CdlReaderExtension.cs プロジェクト: dbshell/dbshell
 public static object[] GetValuesByCols(this ICdlRecord record, DmlfColumnRef[] cols, DmlfResultFieldCollection result)
 {
     if (result == null) return record.GetValuesByCols(cols.GetNames());
     object[] values = new object[cols.Length];
     for (int i = 0; i < cols.Length; i++)
     {
         int index = result.GetColumnIndex(cols[i]);
         values[i] = record.GetValue(index);
     }
     return values;
 }
コード例 #2
0
ファイル: DmlfSelect.cs プロジェクト: dbshell/dbshell
 public DmlfSelect()
 {
     Columns = new DmlfResultFieldCollection();
 }
コード例 #3
0
 public static object[] GetValuesByCols(this ICdlRecord record, DmlfColumnRef[] cols, DmlfResultFieldCollection result)
 {
     if (result == null)
     {
         return(record.GetValuesByCols(cols.GetNames()));
     }
     object[] values = new object[cols.Length];
     for (int i = 0; i < cols.Length; i++)
     {
         int index = result.GetColumnIndex(cols[i]);
         values[i] = record.GetValue(index);
     }
     return(values);
 }