public void RightWithWhereIn()
        {
            EmployeeCollection collection = new EmployeeCollection();

            collection.es.Connection.ConnectionString =
                UnitTestBase.GetFktString(collection.es.Connection);

            switch (collection.es.Connection.ProviderSignature.DataProviderName)
            {
            case "EntitySpaces.SQLiteProvider":
                Assert.Ignore("RIGHT JOIN not supported.");
                break;

            default:
                List <string> custList = new List <string>();
                custList.Add("01001");
                custList.Add("40000");
                custList.Add("XXXXX");

                EmployeeQuery eq = new EmployeeQuery("eq");
                CustomerQuery cq = new CustomerQuery("cq");

                eq.Select(eq.EmployeeID, eq.LastName, cq.CustomerID, cq.CustomerName);
                eq.RightJoin(cq).On(eq.EmployeeID == cq.Manager);
                eq.Where(cq.CustomerID.In(custList));

                EmployeeCollection coll = new EmployeeCollection();
                coll.es.Connection.Name = "ForeignKeyTest";

                Assert.IsTrue(coll.Load(eq));
                Assert.AreEqual(14, coll.Count);
                break;
            }
        }
        public void RightSimple()
        {
            EmployeeCollection collection = new EmployeeCollection();

            collection.es.Connection.ConnectionString =
                UnitTestBase.GetFktString(collection.es.Connection);

            switch (collection.es.Connection.ProviderSignature.DataProviderName)
            {
            case "EntitySpaces.SQLiteProvider":
                Assert.Ignore("RIGHT JOIN not supported.");
                break;

            default:
                EmployeeQuery eq = new EmployeeQuery("eq");
                CustomerQuery cq = new CustomerQuery("cq");

                eq.Select(eq.EmployeeID, eq.LastName, cq.CustomerName);
                eq.RightJoin(cq).On(eq.EmployeeID == cq.StaffAssigned);

                Assert.IsTrue(collection.Load(eq));
                Assert.AreEqual(56, collection.Count);
                break;
            }
        }