コード例 #1
0
        private void btnDynamicQuery_Click(object sender, EventArgs e)
        {
            btnAdd.Enabled    = false;
            btnDelete.Enabled = false;
            btnSave.Enabled   = false;

            EmployeesQuery eq = new EmployeesQuery("eq");
            OrdersQuery    oq = new OrdersQuery("oq");

            eq.Select(eq.EmployeeID, eq.LastName, eq.FirstName, oq.OrderID, oq.ShipCity);
            eq.InnerJoin(oq).On(eq.EmployeeID == oq.EmployeeID);

            coll = new EmployeesCollection();
            coll.Load(eq);

            _bindingSource.DataSource = coll;
        }