c# - When using linqtosql, and inner joining, can you return only a subset of columns? -


When using linqtosql, and inbound entry, can you just return a subset of columns or all columns / Points in properties

Sometimes you only need 2-3 columns, pull it back all 15 etc. It seems that Overkill.

make sure

  var query = c in db.Customers Join db.Orders in c.CustomerID equal o.CustomerID select new {c.Name, o. Date of order};  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -