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
Post a Comment