Exemplo n.º 1
0
 public IList<Supplier> GetSuppliersOfThisProductCategory(Category category)
 {
     return NHibernateHelper.CurrentSession.CreateCriteria<Supplier>()
         .CreateCriteria("Products")
         .Add(Restrictions.Eq("Category.CategoryID", category.CategoryID))
         .List<Supplier>();
 }
 public IList<Supplier> GetSuppliersOfThisProductCategory(Category category)
 {
     return SupplierDal.GetSuppliersOfThisProductCategory(category);
 }