Winforms application trying to get data not working

2 posts, 0 answers
  1. guillaume.lebel
    guillaume.lebel avatar
    60 posts
    Member since:
    Oct 2012

    Posted 10 Nov 2012 Link to this post

    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
  2. guillaume.lebel
    guillaume.lebel avatar
    60 posts
    Member since:
    Oct 2012

    Posted 10 Nov 2012 Link to this post

    I finally found why it was very newb problem.

    Thx anyway :)
  3. DevCraft banner
Back to Top