public void TestGetAllForeignKeysMultiColumnKey() { var list = new List <ErikEJ.SqlCeScripting.Constraint>(); using (IRepository repo = new SQLiteRepository(fkConnectionString)) { list = repo.GetAllForeignKeys(); } Assert.IsTrue(list.Count == 1); Assert.IsTrue(list[0].ConstraintName == "FK_BEVERAGE_DIRECTORY_0_0"); }
public void TestGetAllForeignKeys() { var list = new List <ErikEJ.SqlCeScripting.Constraint>(); using (IRepository repo = new SQLiteRepository(chinookConnectionString)) { list = repo.GetAllForeignKeys(); } Assert.IsTrue(list.Count == 11); Assert.IsTrue(list[0].ConstraintName == "FK_Album_0_0"); }
public void TestGetAllForeignKeys() { var list = new List<ErikEJ.SqlCeScripting.Constraint>(); using (IRepository repo = new SQLiteRepository(chinookConnectionString)) { list = repo.GetAllForeignKeys(); } Assert.IsTrue(list.Count == 11); Assert.IsTrue(list[0].ConstraintName == "FK_Album_0_0"); }