annotate Demo/Asp.Net/Web/Controls/CartList.ascx.cs @ 1:8f65451dc28f
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author |
cin |
date |
Fri, 28 Mar 2014 01:04:56 +0400 |
parents |
f990fcb411a9 |
children |
|
rev |
line source |
0
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.Web.UI;
|
|
4
|
|
5 using PetShop.ObjectModel;
|
|
6
|
|
7 namespace PetShop.Web
|
|
8 {
|
|
9 public partial class CartList : UserControl
|
|
10 {
|
|
11 public void Bind(ICollection<CartItem> cart)
|
|
12 {
|
|
13 if (cart != null)
|
|
14 {
|
|
15 repOrdered.DataSource = cart;
|
|
16 repOrdered.DataBind();
|
|
17 }
|
|
18 }
|
|
19 }
|
|
20 } |