开发者

EntityDataSource, ObjectDataSource: When is it appropriate to use each one of them?

Someone has already asked a question on this matter. But, I'd like have to get more information. According the person who answered, the EntityDataSource has more开发者_高级运维 features, sorting, filtering, ... than the ObjectDataSource.

From that should I infer that It more appropriate to use EntityDataSource at all time?


You can use EntityDataSource only if you are using Entity Framework for data access - it uses capabilities of underlying framework to support features such sorting, filtering etc.

If you are using your some other data access framework or own DB Access Layer then you don't have alternative other than using ObjectDataSource (or roll out your own implementation).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜