LLBLGen Pro Version 2.5 Final (Released December 5th 2007)
using adapter
I decided to start a new thread because, the typed view was not really what I wanted to use. I have attached a screen capture of the LLBL project to show what I've done.
However, when I go into C#, Visual Studio 2008 click on datasource for BindingSource component, assign it to the new BudgetLineEntity, nothing happens and if I click on the Datasource property again, I get an error message:
Object reference not set to an instance of an object.
Here is the code to retrieve the entity. But it's not being used, because I am only working in design mode at the moment.
public static EntityCollection<BudgetLineEntity> getBudgetCollection()
{
EntityCollection<BudgetLineEntity> col =
new EntityCollection<BudgetLineEntity>(new BudgetLineEntityFactory());
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.FetchEntityCollection(col, null);
}
return col;
}
Attachments
Filename |
File size |
Added on |
Approval |
ErrorMessage.JPG
|
12,163 |
12-Mar-2008 11:53.34 |
Approved |