petShop4在的Profile在哪里定义?怎么直接就使用了?
下列代码中的Profile是个什么东西?在哪里定义?
还有ShoppingCart和之后的CartItems.
附:
using System;using System.Web.UI.WebControls;using PetShop.BLL;using PetShop.Model;using System.Collections.Generic;namespace PetShop.Web{ public partial class ShoppingCartControl : System.Web.UI.UserControl { private void BindCart() { ICollection<CartItemInfo> cart = Profile.ShoppingCart.CartItems;//直接就调用了,Profile在哪里? if (cart.Count > 0) { repShoppingCart.DataSource = cart; repShoppingCart.DataBind(); } else { } }}