Entity Framework 4.0-从SQL表读取值 [英] Entity Framework 4.0 - Reading Values From SQL Table

查看:56
本文介绍了Entity Framework 4.0-从SQL表读取值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是使用Entity Framework 4.0的新手.我需要
只需从SQL表中读取单个列即可.

有人可以告诉我该怎么做吗?

解决方案

请仔细阅读.这应该对您有帮助.

如何配置和使用实体框架 [ ^ ]

您会发现本文很有用.本文介绍如何使用实体框架执行基本的CRUD操作.您可能必须使用一些LINQ来指定所需的特定列,然后您将获得所需的内容.

绝对初学者实体框架简介 [ ^ ]


Hi all,

I am new with using Entity Framework 4.0. I need
to simply read a single column from a SQL Table.

Can anyone please tell me how to do this?

解决方案

Go through this. this should help you.

How to configure and use Entity Framework[^]


You could find this article useful. This article shows how to perform basic CRUD operations using Entity framework. You might have to use some LINQ to specify the specific column you need and you will get what you want.

An Introduction to Entity Framework for Absolute Beginners[^]


这篇关于Entity Framework 4.0-从SQL表读取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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