Adding the Correct DAAB References

Topics: Data Access Application Block
Jan 29, 2007 at 5:44 AM
I am a confused about which references I need to add to a DAAB project. After reviewing many articles I currently believe I only need the following:

Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Data.dll

Is this it?

- Rich
Jan 29, 2007 at 1:38 PM
Depends on which version of the EntLib you are using.

For EntLib 1.1 (June 2005 release)
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Configuration.dll
Microsoft.Practices.EnterpriseLibrary.Data.dll

For EntLib 2.0 and 3.0
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Data.dll
Microsoft.Practices.ObjectBuilder.dll
Jan 29, 2007 at 7:21 PM
Thanks. I think the source of my confusion was due to the different versions of the library.

- Rich
Jan 30, 2007 at 12:18 AM
There is also another assembly needed only for SQL Server 2005 Compact Edition:

Microsoft.Practices.EnterpriseLibrary.Data.SqlCe.dll

This is a new assembly in version 3.0 and only needed if you plan to use the DAAB with SQL Server 2005 Compact Edition.

Regards,

Dave

____________________

David Hayden
Microsoft MVP C#