コード例 #1
0
 public IEnumerable Query()
 {
     return(CustomerQueries.GetCustomerViewRelatedCollection());
 }
コード例 #2
0
 /// <summary>
 /// Handles the Click event of the toolStripButtonViewAsEntity control. Example 5.27 pg63.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void toolStripButtonViewAsEntity_Click(object sender, EventArgs e)
 {
     bindingSourceCustomerList.DataSource = CustomerQueries.GetCustomerViewRelatedCollection();
 }
コード例 #3
0
        public void GetCustomerViewRelatedCollectionTest()
        {
            var actual = CustomerQueries.GetCustomerViewRelatedCollection();

            Assert.AreEqual(46117, actual.SalesOrderHeader[0].SalesOrderID);
        }