Query or Query.tolist() RRS feed

  • Question

  • Hello !

    in my project i'm using bindingsource to entity. i want to know which is the best to use :

    MyBindingsource.Datasource= From t in context.table1 where .....

                                                     Select t



    MyBindingsource.Datasource= (From t in context.table1 where .....

                                                     Select t).Tolist


    i want to use bindingsource to add , delete , modify and loop through records.

    i read ( but i'm not sure) that the first version repeat to query continously.

    Can someone help me to choose and to know the differencies ?

    Thank you in advance !

    Friday, December 2, 2011 9:16 PM


All replies