How does one query a SQL View with Linq to SQL? -
i this...
var thedogs = d in db.dogs d.equals(5) select d; //letthemout(thedogs);
where db datacontext , dogs table, view?
is same?
yes, same. can't insert/update/delete data in view.
if you're using linq sql designer, drag view dbml designer.
if you're using manual mapping, map object defining view, instead of table.
Comments
Post a Comment