internal void CreateTableIfNoExist() { if (!ExistTable()) { _tableLog.Create(); } }
private void Dado_uma_tabela_com_mais_de_uma_chave_e_log_ativado() { _tableWith2Keys = new TableAdapter(new DbTesteNampula().DataBaseName, "Fke2Keys"); _tableWith2Keys.Collumns.Add(new TableAdapterField("Key1", "Key1", DbType.Int32, 11, null, true, false)); _tableWith2Keys.Collumns.Add(new TableAdapterField("Key2", "Key2", DbType.Int32, 11, null, true, false)); _tableWith2Keys.Collumns.Add(new TableAdapterField("Record", "Record", 120)); _tableWith2Keys.KeyFields.Add(_tableWith2Keys.Collumns[0]); _tableWith2Keys.KeyFields.Add(_tableWith2Keys.Collumns[1]); _tableWith2Keys.SetAutoLog(); _tableWith2Keys.Create(); }