Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the DataRow. Constructs a row from the builder.
 /// </summary>
 /// <remarks>Only for internal usage.</remarks>
 /// <param name="builder">A <see cref="DataRowBuilder"/> to construct the row.</param>
 protected internal MySqlDataRow(DataRowBuilder builder) : base(builder)
 {
     _excelRange             = null;
     _mySqlTable             = null;
     _refreshingData         = false;
     _setVariablesSql        = null;
     _sqlQuery               = null;
     ChangedColumnNames      = new List <string>(Table.Columns.Count);
     IsBeingDeleted          = false;
     IsHeadersRow            = false;
     ExcelModifiedRangesList = new List <ExcelInterop.Range>(Table.Columns.Count);
     Statement               = new MySqlStatement(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MySqlDummyRow"/> class.
 /// </summary>
 /// <param name="sqlQuery">The SQL query needed to commit changes contained in this row to the SQL server.</param>
 public MySqlDummyRow(string sqlQuery)
 {
     _sqlQuery = sqlQuery;
     RowError  = string.Empty;
     Statement = new MySqlStatement(this);
 }