开发者

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

开发者 https://www.devze.com 2023-03-04 18:41 出处:网络
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, fil

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

精彩评论

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