示例#1
0
    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");
    }
示例#2
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");
    }
示例#3
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");
 }