Merging changes
This commit is contained in:
1 parent
c4216d2272
commit
797816be7e
437 files changed
+54228
-28
No files matched your search
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Collections;
|
||||
|
||||
namespace BCG
|
||||
{
|
||||
[Serializable]
|
||||
public class MutableBlueRow : BlueRow
|
||||
{
|
||||
public MutableBlueRow (IBlueTableSchema schema)
|
||||
: this (schema, MutableBlueRow.myCreateArray (schema.columnNames.Length, DBNull.Value))
|
||||
{}
|
||||
|
||||
public MutableBlueRow (IBlueTableSchema schema, params object[] values)
|
||||
: base (schema, MutableBlueRow.myCloneArray (schema,values))
|
||||
{}
|
||||
|
||||
public MutableBlueRow (string tableName, IDictionary row)
|
||||
: base (tableName, row)
|
||||
{}
|
||||
public MutableBlueRow (IBlueTableSchema schema, IDictionary row)
|
||||
: base (schema, row) { }
|
||||
|
||||
public MutableBlueRow (IBlueRow r)
|
||||
: base (r)
|
||||
{}
|
||||
|
||||
|
||||
public void setValue (string columnName, object newValue)
|
||||
{
|
||||
setValue (mySchema[columnName].colNo, newValue);
|
||||
}
|
||||
|
||||
public void setValue (int colNo, object newValue)
|
||||
{
|
||||
myValues[colNo] = newValue;
|
||||
}
|
||||
|
||||
private static object[] myCloneArray (IBlueTableSchema schema,object[] vals)
|
||||
{
|
||||
object[] retVal = new object[schema.columnNames.Length];
|
||||
for (int i =0; i < vals.Length; i++)
|
||||
retVal[i] = vals[i];
|
||||
return retVal;
|
||||
}
|
||||
|
||||
private static object[] myCreateArray (int sz, object o)
|
||||
{
|
||||
object[] rv = new object[sz];
|
||||
for (int i = 0; i < sz; i++)
|
||||
rv[i] = DBNull.Value;
|
||||
return rv;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user