views:

258

answers:

1

Is there any way to set a property that is not generated by Linq to SQL designer (is not a column in database) in a query?

For example is there such a method like SomeMethod():

IQuaryable<T> query = (from t in context.MyTable
                      where {some conditions}
                      select t).SomeMethod("MyPropertyName", value);

Thanks.

A: 

something like

var query = (from t in context.MyTable
                  where {some conditions}
                  select new {t, MyPropertyName = value });

im not sure if this is what you're asking or not.

John Boker