Is my connection setup correctly?

Topics: Data Access Application Block
Oct 10, 2011 at 5:22 PM

I'm trying to add DAAB to an existing web site. I used the .chm file for EntLib and tried to follow along but not sure I got it setup correctly. After saving in the configuration tool I found the <dataConfiguration> section but I don't see how it is mapped to use my existing connection string. This is what I have.....does it look correct? How does it know to use my connection string?

      [add databaseType="Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        name="System.Data.SqlClient" /]
    [add name="ConnString" connectionString="Data Source=MyServer;Initial Catalog=MyDB;Persist Security Info=True;User ID=UID;Password=Pass123"
      providerName="System.Data.SqlClient" /]