Пример #1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     Foundation.ObjectHydrator.Hydrator <Customer> hydrator = new Foundation.ObjectHydrator.Hydrator <Customer>()
                                                              .With(x => x.Company, new FromListGetSingleGenerator <Company>((IList <Company>)Application["companies"]))
                                                              .With(x => x.LastName, txtLastName.Text);
     GridView1.DataSource = hydrator.GetList(30);
     GridView1.DataBind();
 }
 protected void Button1_Click(object sender, EventArgs e)
 {
     Foundation.ObjectHydrator.Hydrator<Customer> hydrator = new Foundation.ObjectHydrator.Hydrator<Customer>()
     .With(x => x.Company, new FromListGetSingleGenerator<Company>((IList<Company>)Application["companies"]))
     .With(x => x.LastName, txtLastName.Text);
     GridView1.DataSource = hydrator.GetList(30);
     GridView1.DataBind();
 }