Friday 31 May 2013

How to add a new record to an IQueryable variable?

You should first convert it to List;
IQueryable<int> foo = new SomeQueryable<int<();
List<int> list = foo.ToList();
list.Add(5);
or by using Concat
IQueryable<int> foo = new SomeQueryable<int<();
foo = foo.Concat(new int[]{5});

0 comments:

Post a Comment


                                                            
 
Design by Abhinav Ranjan Sinha