/// <summary> /// Writes the specified <see cref="BulkEntity"/> to the file. /// </summary> /// <param name="entity">The bulk entity to write to the file.</param> /// <param name="excludeReadonlyData">Whether read only fields should be ignored.</param> /// <remarks> /// Bulk entities that are derived from <see cref="SingleRecordBulkEntity"/> will be written to a single row in the file. /// Bulk entities that are derived from <see cref="MultiRecordBulkEntity"/> will be written to multiple rows in the file. /// </remarks> public void WriteEntity(BulkEntity entity, bool excludeReadonlyData) { entity.WriteToStream(_bulkObjectWriter, excludeReadonlyData); }
/// <summary> /// Writes the specified <see cref="BulkEntity"/> to the file. /// </summary> /// <param name="entity">The bulk entity to write to the file.</param> /// <remarks> /// Bulk entities that are derived from <see cref="SingleRecordBulkEntity"/> will be written to a single row in the file. /// Bulk entities that are derived from <see cref="MultiRecordBulkEntity"/> will be written to multiple rows in the file. /// </remarks> public void WriteEntity(BulkEntity entity) { entity.WriteToStream(_bulkObjectWriter, false); }