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

c# - BasicHttpBinding equivalent CustomBinding using WCF Client and PHP WebService -

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -