1

What is the difference between Data Access Objects (DAO) and Data provider (DP) patterns?

I've read about them and it seems to me that they're the same except that .NET uses the data provider terminology.

Zaxter
  • 2,939
  • 3
  • 31
  • 48

2 Answers2

2

Actually both specify an entity which exposes a set of customized methods to read from or write to a database.

Indeed the term 'DAO' is the more generic one to use. DP is a term introduced by Microsoft in their products to do the exactly same work. You can refer this for more detail about DPs.

Supun Wijerathne
  • 11,964
  • 10
  • 61
  • 87
0

I usually use DataProvider when I just want to 'provide' a database in form of an instance. In this case, I don't have permission to write this instance back in database. I've just pick up these data to read.

But when I use DAO I'm allowing to permission to use all CRUD operations, as normal.

guijob
  • 4,413
  • 3
  • 20
  • 39