enterprise data application block

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all, does anyone know if the current version of the Enterprise DAB is
compatible with SQL 2005?

thanks
 
You can definitely use it against Yukon without any modifications. However
there's a lot in the 2.0 Framework that's changing (for instance, instead of
Parameters.Add in a SqlCommand, it's AddWithValue so there are a few
breaking changes) so you won't be able to take advantage of those featuers
out of the box. This is related to the 2.0 framework though, and since
nothing int he Enterprise Library is specific to 2005 - you won't have any
compatibility problems.

It's slow in coming but I've been working on a port which will include many
of the 2.0 features and so far, it's been pretty straightforward.
 
Bill, are you saying that the Parameters.Add does not work at all with the
2.0 Framework? It seems to work in my builds. Perhaps only if the second
argument is the value?

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
www.sqlreportingservices.net
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
 
I'm getting a warning saying that Add is deprecated. Since I'm getting a
warning on it, I'm assuming that when the final build comes out, Add will
cause your code to be broken. Here's the error I'm getting:

System.Data.SqlClient.SqlParameterCollection.Add(string, object) is
obsolete: Add(String parameterName, Object value) has been deprecated.

Use AddWithValue(String parameterName, Object value).
 
Back
Top