Exemplo n.º 1
0
 /// <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());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataRow"/> class.
 /// </summary>
 /// <param name="parent"></param>
 public DataRow(DataBatch parent)
 {
     this.parent = parent;
 }
Exemplo n.º 3
0
 /// <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);
 }
Exemplo n.º 4
0
 /// <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());
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataRow"/> class.
 /// </summary>
 /// <param name="parent"></param>
 public DataRow(DataBatch parent)
 {
     this.parent = parent;
 }
Exemplo n.º 6
0
 /// <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;
 }