/// <summary> /// Initializes a new instance of the <see cref="DataRow"/> class. /// </summary> /// <param name="idColumnName">Name of the id column.</param> /// <param name="id">The id.</param> /// <param name="parent">The parent.</param> public DataRow(string idColumnName, object id, DataBatch parent) : this(parent) { Data(idColumnName, id); idKeyValuePair = new KeyValuePair <string, string>(idColumnName, id.ToSqlValueString()); }
/// <summary> /// Initializes a new instance of the <see cref="DataRow"/> class. /// </summary> /// <param name="parent"></param> public DataRow(DataBatch parent) { this.parent = parent; }
/// <summary> /// Creates a new IDataAccumulatorBatch and adds it to the /// inner data structure. This instance of IDataAccumulatorBatch /// represents a batch of operations that are to be invoked /// against the table with the given name. /// </summary> /// <param name="tableName">Name of the table.</param> /// <returns></returns> public IDataAccumulatorBatch ForTable(string tableName) { currentBatch = new DataBatch(tableName, this); batches.Add(currentBatch); return(currentBatch); }
/// <summary> /// Initializes a new instance of the <see cref="DataRow"/> class. /// </summary> /// <param name="idColumnName">Name of the id column.</param> /// <param name="id">The id.</param> /// <param name="parent">The parent.</param> public DataRow(string idColumnName, object id, DataBatch parent) : this(parent) { Data(idColumnName, id); idKeyValuePair = new KeyValuePair<string, string>(idColumnName, id.ToSqlValueString()); }
/// <summary> /// Creates a new IDataAccumulatorBatch and adds it to the /// inner data structure. This instance of IDataAccumulatorBatch /// represents a batch of operations that are to be invoked /// against the table with the given name. /// </summary> /// <param name="tableName">Name of the table.</param> /// <returns></returns> public IDataAccumulatorBatch ForTable(string tableName) { currentBatch = new DataBatch(tableName, this); batches.Add(currentBatch); return currentBatch; }