I am new to EF. When we work with a datareader or dataset, we sometimes fill in the control value in a loop. as
datareader dr=getdata()
while(dr.read())
{
// in this loop we can populate control with value from datareader
}
dataset ds =getdata()
for(int i=0;i<=ds.tables[0].rows.count-1;i++)
{
// in this loop we can populate control with value from dataset
}
so I just want to know when I work with EF, while I can iterate through the loop and populate the controls with a value.
Another question: how to iterate over zero in EF.
please help me with a code example to understand things. thank
source
share