Problem with EntityView & Entity Collection

Posts   
 
    
yj
User
Posts: 39
Joined: 07-Aug-2007
# Posted on: 07-Aug-2007 12:15:40   

Hi guys, I am facing some problems following the documentation to use EntityView. I get the "namespace" not defined error, just which namespace shall i include in order to utilize this? I had generated the code using the SelfServicing Template.

Besides, how can i actually loop through an Entity Collection in order to display all the items inside it without binding to a Datagrid?

Thank you guys for your help.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 07-Aug-2007 17:08:54   

yj wrote:

Hi guys, I am facing some problems following the documentation to use EntityView. I get the "namespace" not defined error, just which namespace shall i include in order to utilize this? I had generated the code using the SelfServicing Template.

please see: Using the generated code -> Compiling simple_smile

add: using SD.LLBLGen.Pro.ORMSupportClasses; or Imports SD.LLBLGen.Pro.ORMSupportClasses

Besides, how can i actually loop through an Entity Collection in order to display all the items inside it without binding to a Datagrid?

// customers
foreach(CustomerEntity c in myCollection)
{
// do something with c
}
Frans Bouma | Lead developer LLBLGen Pro
yj
User
Posts: 39
Joined: 07-Aug-2007
# Posted on: 08-Aug-2007 11:16:58   

Thanks alot, great help :>