Class Schema
- Namespace
- Dynamicweb.DataIntegration.Integration
- Assembly
- Dynamicweb.DataIntegration.dll
Describes a schema for a datasource/Destination. Additionally, describes any additions needed to the schema, such as new Tables or columns that should be added when a job is run.
public class Schema
- Inheritance
-
Schema
- Inherited Members
Constructors
Schema()
Initializes a new empty instance of the Schema class.
public Schema()
Schema(string)
public Schema(string xmlString)
Parameters
xmlString
string
Schema(XmlNode)
Initializes a schema from XML.
public Schema(XmlNode node)
Parameters
node
XmlNodexmlNode containing the schema.
Methods
AddNewTable(string, string)
add a table to the schema that should be created in the destination when the import/export job is run
public Table AddNewTable(string tableName, string sqlSchema)
Parameters
Returns
AddTable(Table)
Adds a table to the schema
public void AddTable(Table table)
Parameters
table
Table
AddTable(string)
add a table to the schema that already exists in the source/destination
public Table AddTable(string tableName)
Parameters
tableName
string
Returns
AddTable(string, string)
add a table to the schema that already exists in the source/destination
public Table AddTable(string tableName, string sqlSchema)
Parameters
Returns
GetTables()
Gets the tables.
public TableCollection GetTables()
Returns
RemoveTable(Table)
Removes the table from the schema.
public void RemoveTable(Table table)
Parameters
table
TableThe table.
SaveAsXml(string)
public void SaveAsXml(string filePath)
Parameters
filePath
string
SaveAsXml(XmlTextWriter)
Writes the schema as XML to the xmlTextWriter.
public void SaveAsXml(XmlTextWriter xmlTextWriter)
Parameters
xmlTextWriter
XmlTextWriterThe XML text writer.