コード例 #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());
 }
コード例 #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;
 }
コード例 #3
0
ファイル: DataSession.cs プロジェクト: sheitm/DataWings
 /// <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);
 }
コード例 #4
0
ファイル: DataRow.cs プロジェクト: sheitm/DataWings
 /// <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());
 }
コード例 #5
0
ファイル: DataRow.cs プロジェクト: sheitm/DataWings
 /// <summary>
 /// Initializes a new instance of the <see cref="DataRow"/> class.
 /// </summary>
 /// <param name="parent"></param>
 public DataRow(DataBatch parent)
 {
     this.parent = parent;
 }
コード例 #6
0
ファイル: DataSession.cs プロジェクト: sheitm/DataWings
 /// <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;
 }