none
Query or Query.tolist() RRS feed

  • Question

  • Hello !

    in my vb.net 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

    or

     

    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

Answers

All replies