EntityCollection<SalesPersonEntity> salesPersons = new EntityCollection<SalesPersonEntity>();
using(DataAccessAdapter adapter= new DataAccessAdapter())
{
adapter.FetchEntityCollection(salesPersons, null);
}
dgvSalesPerson.DataSource = salesPersons;
or vb
Dim salesPersons As New EntityCollection(Of SalesPersonEntity)()
Using adapter As New DataAccessAdapter()
adapter.FetchEntityCollection(salesPersons, Nothing)
End Using
dgvSalesPerson.DataSource = salesPersons
sniff
one line extra...
DataBind() isn't needed in winforms, I think he uses winforms (datagridview)
His code has a sucky string value as well... very typesafe!
, plus 'GetQuery'... isn't that some generated code somewhere?
His remark about property order is also funny, he really doesn't understand how databinding works apparently heh
Is this article visible online somewhere?