选择所有的行使用实体框架 [英] Select All Rows Using Entity Framework

查看:147
本文介绍了选择所有的行使用实体框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想选择了使用实体框架操纵数据库的所有行之前他们发送到表单

I'm trying to select all the rows out of a database using entity framework for manipulation before they're sent to the form

var ptx = [modelname].[tablename]();
ptx.[tablename].Select(????)

在发生什么的????

what goes in the ????

推荐答案

我用entitydatasource并将其提供我所需要的一切我想做的事情。

I used the entitydatasource and it provide everything I needed for what I wanted to do.

_repository [表名] .ToList();

这篇关于选择所有的行使用实体框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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