コード例 #1
0
    public void TestGetAllPrimaryKeys2()
    {
        var list = new List <PrimaryKey>();

        using (IRepository repo = new SQLiteRepository(infoConnectionString))
        {
            list = repo.GetAllPrimaryKeys();
        }
        Assert.IsTrue(list.Count == 12);
        Assert.IsTrue(list[0].KeyName == "CUSTOMER219ORDERS");
    }
コード例 #2
0
    public void TestGetAllPrimaryKeys()
    {
        var list = new List <PrimaryKey>();

        using (IRepository repo = new SQLiteRepository(chinookConnectionString))
        {
            list = repo.GetAllPrimaryKeys();
        }
        Assert.IsTrue(list.Count == 12);
        Assert.IsTrue(list[0].KeyName == "sqlite_master_PK_Album");
    }
コード例 #3
0
ファイル: SQLiteTests.cs プロジェクト: johbln/SqlCeToolbox
    public void TestGetAllPrimaryKeys2()
    {
        var list = new List <PrimaryKey>();

        using (IRepository repo = new SQLiteRepository(infoConnectionString))
        {
            list = repo.GetAllPrimaryKeys();
        }
        Assert.AreEqual(11, list.Count);
        Assert.AreEqual("CUSTOMER219ORDERS", list[0].KeyName);
    }
コード例 #4
0
ファイル: SQLiteTests.cs プロジェクト: inickvel/SqlCeToolbox
 public void TestGetAllPrimaryKeys2()
 {
     var list = new List<PrimaryKey>();
     using (IRepository repo = new SQLiteRepository(infoConnectionString))
     {
         list = repo.GetAllPrimaryKeys();
     }
     Assert.IsTrue(list.Count == 12);
     Assert.IsTrue(list[0].KeyName == "CUSTOMER219ORDERS");
 }
コード例 #5
0
ファイル: SQLiteTests.cs プロジェクト: inickvel/SqlCeToolbox
 public void TestGetAllPrimaryKeys()
 {
     var list = new List<PrimaryKey>();
     using (IRepository repo = new SQLiteRepository(chinookConnectionString))
     {
         list = repo.GetAllPrimaryKeys();
     }
     Assert.IsTrue(list.Count == 12);
     Assert.IsTrue(list[0].KeyName == "sqlite_master_PK_Album");
 }