Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConnectionStringsVariableSource Class

Implementation of IVariableSource that resolves variable name connection strings defined in the standard .NET configuration file.

For a list of all members of this type, see ConnectionStringsVariableSource Members .

System.Object
   ConnectionStringsVariableSource

[Visual Basic]
<Serializable> _
Public Class ConnectionStringsVariableSource
    Implements IVariableSource
[C#]
[Serializable]
public class ConnectionStringsVariableSource : IVariableSource

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

When the <connectionStrings> configuration section is processed by this class, two variables are defined for each connection string: one for connection string and the second one for the provider name.

Variable names are generated by appending '.connectionString' and '.providerName' literals to the value of the name attribute of the connection string element. For example:

        
          
          
        
      

will result in two variables being created: myConn.connectionString and myConn.providerName. You can reference these variables within your object definitions, just like any other variable.

Requirements

Namespace: Spring.Objects.Factory.Config

Assembly: Spring.Core (in Spring.Core.dll)

See Also

ConnectionStringsVariableSource Members | Spring.Objects.Factory.Config Namespace