本文介绍了Linq到实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
EmployeeDataContext data = new EmployeeDataContext(); data.ExecuteCommand("insert into emp values(6,''shibaji'',''ats''"); // var names=data.emps.Single()
我的应用程序不支持该单一方法.
This single method is not supported in my application.
推荐答案它可能受支持.您只需要在类顶部手动添加 System.Linq 命名空间即可. It probably is supported. You just need to include the System.Linq namespace manually at the top of your class.
更多推荐
Linq到实体
发布评论