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
xmlStringstring
Schema(XmlNode)
Initializes a schema from XML.
public Schema(XmlNode node)
Parameters
nodeXmlNodexmlNode 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
tableTable
AddTable(string)
add a table to the schema that already exists in the source/destination
public Table AddTable(string tableName)
Parameters
tableNamestring
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
tableTableThe table.
SaveAsXml(string)
public void SaveAsXml(string filePath)
Parameters
filePathstring
SaveAsXml(XmlTextWriter)
Writes the schema as XML to the xmlTextWriter.
public void SaveAsXml(XmlTextWriter xmlTextWriter)
Parameters
xmlTextWriterXmlTextWriterThe XML text writer.