public void AddIndex()
        {
            string indexName = "test_index";

            Assert.IsFalse(_provider.IndexExists("TestTwo", indexName));
            _provider.AddIndex(indexName, "TestTwo", "Id", "TestId");
            Assert.IsTrue(_provider.IndexExists("TestTwo", indexName));
        }
 public static void AddIndex(
     this ITransformationProvider transformation,
     string tableName,
     params string[] columns)
 {
     transformation.AddIndex(tableName, false, columns);
 }
Exemplo n.º 3
0
 public override void Execute(ITransformationProvider provider)
 {
     provider.AddIndex(Name, Table.Name,
         Columns.Select(x => x).ToArray());
 }