'Declaration Public Class SalesforceLoaderColumn Inherits Devart.Common.DbLoaderColumn
public class SalesforceLoaderColumn : Devart.Common.DbLoaderColumn
'Declaration Public Class SalesforceLoaderColumn Inherits Devart.Common.DbLoaderColumn
public class SalesforceLoaderColumn : Devart.Common.DbLoaderColumn
Each SalesforceLoader uses a SalesforceLoader.Columns to maintain a collection of SalesforceLoaderColumn objects. The SalesforceLoaderColumn object represents the attributes for column loading. Every SalesforceLoaderColumn object corresponds to one of the table fields with the same name as its Name property.
You can manually make changes to the SalesforceLoader.Columns collection to exclude some columns from INSERT statement generated by SalesforceLoader object.
public void LoadData(SalesforceConnection salesforceConnection) { salesforceConnection.Open(); SalesforceLoader loader = new SalesforceLoader(); loader.Connection = salesforceConnection; loader.TableName = "load_table"; try { loader.CreateColumns(); //Do not insert data in the last column loader.Columns.RemoveAt(loader.Columns.Count-1); loader.Open(); for (int i = 1; i <= 100; i++) { loader.SetValue("id", i); loader.SetValue(1, "test string"); loader.SetValue("date_field", DateTime.Now); loader.NextRow(); } loader.Close(); } finally { salesforceConnection.Close(); } }
Public Sub LoadData(ByVal salesforceConnection As SalesforceConnection) salesforceConnection.Open() Dim loader As SalesforceLoader loader = New SalesforceLoader loader.Connection = salesforceConnection loader.TableName = "load_table" Try loader.CreateColumns() ' Do not insert data in the last column loader.Columns.RemoveAt(loader.Columns.Count - 1) loader.Open() Dim i As Integer For i = 1 To 100 loader.SetValue("id", i) loader.SetValue(1, "test string") loader.SetValue("date_field", DateTime.Now) loader.NextRow() Next i loader.Close() Finally salesforceConnection.Close() End Try End Sub
System.Object
System.MarshalByRefObject
Devart.Common.DbLoaderColumn
Devart.Data.Salesforce.SalesforceLoaderColumn
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2