This is a migrated thread and some comments may be shown as answers.

Winforms application trying to get data not working

1 Answer 38 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
guillaume.lebel asked on 11 Nov 2012, 02:19 AM
Hi,

I've recently tried OpenAccess and wanted to build a winforms application with it. I was able to get fetch data from the database inside mstest. But when i try the same method in my form, no data are display in my dropdownlist.

I've put breakpoint in the application and it seems that right after the getall<> it skip everything else that are after.

MyModel model = new MyModel();
List<ItemType> itemTypes = model.GetAll<ItemType>().ToList();
 
return BuildCollection(itemTypes);

The BuildCollection method is suppose to create a collection that i use to databind my controls, but it isn't call. I also tried to call the same method with "using" and i still get the same comportment.

I know i might doing something wrong, but i'm unable to figure it out.

Thx for your help,

Guillaume

1 Answer, 1 is accepted

Sort by
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 11 Nov 2012, 03:46 AM
I finally found why it was very newb problem.

Thx anyway :)
Tags
Data Access Free Edition
Asked by
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Answers by
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Share this question
or