Esempio n. 1
0
        protected void CreateTable(Table table)
        {
            using (var command = _connection.CreateCommand()) {
                command.CommandText = VfpCodeTableConverter.GetVfpCode(table);

                _connection.DoConnected(() => command.ExecuteNonQuery());
            }
        }
        public void CreateTempTable(VfpConnection connection, DataTableDbcCreator dbcCreator)
        {
            ArgumentUtility.CheckNotNull("connection", connection);

            DataTable dataTable = null;

            connection.DoConnected(() => {
                dataTable = this.GetSchema(connection);
            });

            dbcCreator.Add(dataTable);

            TempTableFullPath = dataTable.TableName;
        }