ImportIntoDataBase
FormDataConverter.ImportIntoDataBase method
Importa i dati dalla tabella nel database.
public void ImportIntoDataBase(string connectString, DataType dbType)
Parametro | Tipo | Descrizione |
---|---|---|
connectString | String | Stringa di connessione del database. |
dbType | DataType | Tipo di connessione al database: OLEDB o ODBC. |
Esempi
FormDataConverter fc = new FormDataConverter();
DataTable table = new DataTable();
table.TableName = "test";
table.Columns.Add("TEXT_VALUE");
table.Columns.Add("INT_VALUE");
fc.Table = table;
DataRow row = table.NewRow();
row["TEXT_VALUE"] = "AAA";
row["INT_VALUE"] = "123";
table.Rows.Add(row);
string connection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=ConverterDatabase.mdb";
fc.ImportIntoDataBase(connection, DataType.OLEDB);
Guarda anche
- enum DataType
- class FormDataConverter
- spazio dei nomi Aspose.Pdf.Facades
- assemblea Aspose.PDF