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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -