Repository.DataWarehouse.SaveRawDataSet: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) No edit summary |
John Leavitt (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
{{APIName|As [[RawDataSet Class|RawDataSet]])}} | {{APIName|As [[RawDataSet Class|RawDataSet]])}} | ||
{{APIPrefix|As Boolean}}<br> | {{APIPrefix|As Boolean}}<br> | ||
{{APIComment|Saves the | {{APIComment|Saves the contents of the passed RawDataSet instance to the Synthesis Repository that this Repository instance references.}} | ||
== Parameters == | == Parameters == |
Revision as of 00:03, 13 December 2013
Saves the contents of the passed RawDataSet instance to the Synthesis Repository that this Repository instance references.
Method Syntax
Public Function SaveRawDataSet(
ByVal
DataSet
As RawDataSet)
As Boolean
Saves the contents of the passed RawDataSet instance to the Synthesis Repository that this Repository instance references.
Parameters
DataSet The raw data object.
Usage Example
Code Block
' Declare a new repository connection class. Private WithEvents MyRepository As New Repository ' Connect to the Synthesis repository. DimSuccessAs Boolean=False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") ' Declare and populate a RawData object and a RawDataSet. In this example, the first Incident information is used. DimRDAs New RawData ' (Populate relevant RawData variables in RD.) DimRDSetAs New RawDataSet RDSet.AddDataRow(RD) ' Save the raw data to the Synthesis repository. DimSuccessSaveRawDataAs Boolean SuccessSaveRawData = MyRepository.SaveRawDataSet(RDSet)
Reformatted Usage Example
Declare a new repository connection class.
Private WithEvents MyRepository As New Repository
Connect to the Synthesis repository.
Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
Declare and populate a RawData object and a RawDataSet. In this example, the first Incident information is used.
Dim RD As New RawData ( Populate relevant RawData variables in RD. ) Dim RDSet As New RawDataSet RDSet.AddDataRow(RD)
Save the raw data to the Synthesis repository.
Dim SuccessSaveRawData As Boolean SuccessSaveRawData = MyRepository.SaveRawDataSet(RDSet)