Linq到实体 [英] Linq to Entities

查看:128
本文介绍了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到实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆