tags:

views:

95

answers:

3

Hi, I am using the following

Product objProduct = new Product("active_flag","true");

This one will result multiple row, how can I access the multple rows? ObjProduct will have only one row?

+4  A: 

If you're using 2.1 or above you can do the following:

ProductCollection products = DB.Select().From(Product.Schema)
  .Where(Product.Columns.active_flag).IsEqualTo(true)
  .ExecuteAsCollection<ProductCollection>();
Adam
A: 

Thanks Adam

A: 

Another way...

ProductCollection products = new ProductCollection()
   .Where(Product.Columns.active_flag, true)
   .Load();
leroy