在Entity Framework中使用EntityDataSource与ObjectDataSource的优缺点? [英] Pros and cons of using EntityDataSource vs ObjectDataSource in Entity Framework?

查看:53
本文介绍了在Entity Framework中使用EntityDataSource与ObjectDataSource的优缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在基于Entity Framework asp.net的应用程序中使用EntityDataSource与ObjectDataSource的优缺点是什么?

What are the pros and cons of using EntityDataSource vs ObjectDataSource in Entity Framework asp.net based apps?

推荐答案

基本上<建立href = http://msdn.microsoft.com/zh-cn/library/cc488502.aspx rel = noreferrer title = EntityDataSource> EntityDataSource 的目的是为了支持诸如以下功能的实体框架实体排序,筛选,插入,删除等...如果您使用 ObjectDataSource ,您将必须自己执行此操作。

Basically EntityDataSource is build to support Entity Framework entities for features like sorting, filtering, inserting, deleting etc... If you use the ObjectDataSource you will have to do this on your own.

这篇关于在Entity Framework中使用EntityDataSource与ObjectDataSource的优缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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