Richard77
Richard77

Reputation: 21621

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?

Upvotes: 0

Views: 444

Answers (1)

VinayC
VinayC

Reputation: 49195

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).

Upvotes: 1

Related Questions