Click or drag to resize

DataInserter Class

This class defines a common set of functionality that any data operation implementation can use
Inheritance Hierarchy
SystemObject
  GSF.DataBulkDataOperationBase
    GSF.DataDataInserter

Namespace: GSF.Data
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public class DataInserter : BulkDataOperationBase
View Source

The DataInserter type exposes the following members.

Constructors
 NameDescription
Public methodDataInserter Creates a new DataInserter.
Public methodDataInserter(Schema, Schema) Creates a new DataInserter.
Public methodDataInserter(String, String) Creates a new DataInserter.
Top
Properties
 NameDescription
Public propertyAttemptBulkInsert Get or set to attempt use of a BULK INSERT on a destination SQL Server connection
Public propertyAttemptTruncateTable Set to True to attempt use of a TRUNCATE TABLE on a destination SQL Server connection if ClearDestinationTables is True and it looks like the referential integrity definition supports this. Your SQL Server connection will need the rights to perform this operation.
Public propertyBulkInsertEncoding This setting defines the text encoding that will be used when writing a temporary BULK INSERT file that will be needed if a SQL Server BULK INSERT is performed - make sure the encoding output matches the specified CODEPAGE value in the BulkInsertSettings property.
Public propertyBulkInsertFilePath This setting defines the file path that will be used when writing a temporary BULK INSERT file that will be needed if a SQL Server BULK INSERT is performed - make sure the destination SQL Server has rights to this path.
Public propertyBulkInsertSettings This setting defines the SQL Server BULK INSERT settings that will be used if a BULK INSERT is performed.
Public propertyClearDestinationTables Set to True to clear all data from the destination database before processing data inserts.
Public propertyDelimiterReplacement This specifies the string that will be substituted for the field terminator or row terminator if encountered in a database value while creating a BULK INSERT file. The field terminator and row terminator values are defined in the BulkInsertSettings property specified by the FIELDTERMINATOR and ROWTERMINATOR keywords respectively.
Public propertyExcludedTables Get list of tables to be excluded during data processing
(Inherited from BulkDataOperationBase)
Public propertyForceBulkInsert Get or set to force use of a BULK INSERT on a destination SQL Server connection regardless of whether or not it looks like the referential integrity definition supports this.
Public propertyForceTruncateTable Set to True to force use of a TRUNCATE TABLE on a destination SQL Server connection if ClearDestinationTables is True regardless of whether or not it looks like the referential integrity definition supports this. Your SQL Server connection will need the rights to perform this operation
Public propertyFromSchema Get or set Source schema
(Inherited from BulkDataOperationBase)
Public propertyPreserveAutoIncValues Set to True to preserve primary key value data to the destination database before processing data inserts.
Public propertyRowReportInterval Get or set number of rows to process before raising progress events
(Inherited from BulkDataOperationBase)
Public propertyTimeout Get or set Maximum number of seconds to wait when processing a SQL command before timing out.
(Inherited from BulkDataOperationBase)
Public propertyToSchema Get or set destination schema
(Inherited from BulkDataOperationBase)
Public propertyUseFromSchemaReferentialIntegrity Get or set - use referential integrity information from source/to destination database during data processing
(Inherited from BulkDataOperationBase)
Public propertyWorkTables These are the tables that were found in both source and destination to be used for data operation...
(Inherited from BulkDataOperationBase)
Top
Methods
 NameDescription
Public methodAnalyze Analyze data schema before data processing
(Inherited from BulkDataOperationBase)
Public methodClose Close
(Overrides BulkDataOperationBaseClose)
Protected methodDispose Dispose
(Inherited from BulkDataOperationBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecute Execute this DataInserter
(Overrides BulkDataOperationBaseExecute)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnOverallProgress Raise an event to show overall progress of data processing
(Inherited from BulkDataOperationBase)
Protected methodOnRowProgress Raise an event while change row in data processing
(Inherited from BulkDataOperationBase)
Protected methodOnSQLFailure Raise an event if SQL statement fail
(Inherited from BulkDataOperationBase)
Protected methodOnTableProgress Raise an event if table change in data processing
(Inherited from BulkDataOperationBase)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventBulkInsertCompleted Bulk-insert completed event.
Public eventBulkInsertException Bulk-insert exception event.
Public eventBulkInsertExecuting Bulk-insert executing event.
Public eventDisposed Disposed event.
Public eventOverallProgress Get the information of overall progress of Migration utility
(Inherited from BulkDataOperationBase)
Public eventRowProgress Get the information of Row progress of table
(Inherited from BulkDataOperationBase)
Public eventSQLFailure Get the information of exception while processing SQL statement
(Inherited from BulkDataOperationBase)
Public eventTableCleared Table cleared event.
Public eventTableProgress Get the status information of table progress
(Inherited from BulkDataOperationBase)
Top
Fields
 NameDescription
Protected fieldm_fromSchema From schema.
(Inherited from BulkDataOperationBase)
Protected fieldm_overallProgress Implementer can use this variable to track overall progress
(Inherited from BulkDataOperationBase)
Protected fieldm_overallTotal This is initialized to the overall total number of records to be processed
(Inherited from BulkDataOperationBase)
Protected fieldm_tableCollection Tables value
(Inherited from BulkDataOperationBase)
Protected fieldm_timeout Timeout value for SQL operation
(Inherited from BulkDataOperationBase)
Protected fieldm_toSchema To schema.
(Inherited from BulkDataOperationBase)
Protected fieldm_useFromSchemaRI Flag to check referential integrity
(Inherited from BulkDataOperationBase)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also